refactory: added UI removed from core plugin.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / internal / ui / text / ITypingRunListener.java
diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/ITypingRunListener.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/ITypingRunListener.java
new file mode 100644 (file)
index 0000000..a1e35a5
--- /dev/null
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package net.sourceforge.phpdt.internal.ui.text;
+
+import net.sourceforge.phpdt.internal.ui.text.TypingRun.ChangeType;
+
+/**
+ * Listener for <code>TypingRun</code> events.
+ * 
+ * @since 3.0
+ */
+public interface ITypingRunListener {
+       /**
+        * Called when a new <code>TypingRun</code> is started.
+        * 
+        * @param run
+        *            the newly started run
+        */
+       void typingRunStarted(TypingRun run);
+
+       /**
+        * Called whenever a <code>TypingRun</code> is ended.
+        * 
+        * @param run
+        *            the ended run
+        * @param reason
+        *            the type of change that caused the end of the run
+        */
+       void typingRunEnded(TypingRun run, ChangeType reason);
+}
\ No newline at end of file