Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/IEventConsumer.java')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/IEventConsumer.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/IEventConsumer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/IEventConsumer.java
new file mode 100644
index 00000000000..700704992ea
--- /dev/null
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/IEventConsumer.java
@@ -0,0 +1,31 @@
+package org.eclipse.jface.text;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved.
+ */
+
+
+import org.eclipse.swt.events.VerifyEvent;
+
+/**
+ * Implementers can register with an text viewer and
+ * receive <code>VerifyEvent</code>s before the text viewer
+ * they are registered with. If the event consumer marks events
+ * as processed by turning their <code>doit</code> field to
+ * <code>false</code> the text viewer subsequently ignores them.
+ * Clients may implement this interface.
+ *
+ * @see ITextViewer
+ * @see org.eclipse.swt.events.VerifyEvent
+ */
+public interface IEventConsumer {
+
+ /**
+ * Processes the given event and marks it as done if it should
+ * be ignored by subsequent receivers.
+ *
+ * @param event the verify event which will be investigated
+ */
+ public void processEvent(VerifyEvent event);
+}

Back to the top