Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2004-09-13 21:49:55 +0000
committerKevin Barnes2004-09-13 21:49:55 +0000
commit32cdc54a27a10ec3f3b4956f9af7b4a2f57f53c9 (patch)
tree98463db88f63306ad24fa3d23d77c1c26ff446d0 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java
parent36c9b6dde93b24931374259acae8da0f1b2c6d51 (diff)
downloadeclipse.platform.debug-32cdc54a27a10ec3f3b4956f9af7b4a2f57f53c9.tar.gz
eclipse.platform.debug-32cdc54a27a10ec3f3b4956f9af7b4a2f57f53c9.tar.xz
eclipse.platform.debug-32cdc54a27a10ec3f3b4956f9af7b4a2f57f53c9.zip
Bug 73576 - Pattern matching in IOConsole is too expensive
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java
index cf82c6d6d..a94020735 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ConsoleLineNotifier.java
@@ -23,6 +23,7 @@ import org.eclipse.jface.util.ListenerList;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.console.IOConsole;
+import org.eclipse.ui.console.IPatternMatchListener;
import org.eclipse.ui.console.IPatternMatchListenerDelegate;
import org.eclipse.ui.console.PatternMatchEvent;
@@ -30,7 +31,7 @@ import org.eclipse.ui.console.PatternMatchEvent;
* Tracks text appended to the console and notifies listeners in terms of whole
* lines.
*/
-public class ConsoleLineNotifier implements IPatternMatchListenerDelegate, IPropertyChangeListener {
+public class ConsoleLineNotifier implements IPatternMatchListener, IPropertyChangeListener {
/**
* Console listeners
*/
@@ -158,4 +159,25 @@ public class ConsoleLineNotifier implements IPatternMatchListenerDelegate, IProp
}
}
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.console.IPatternMatchListener#getPattern()
+ */
+ public String getPattern() {
+ return ".*\\r(\\n?)|.*\\n"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.console.IPatternMatchListener#getCompilerFlags()
+ */
+ public int getCompilerFlags() {
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.console.IPatternMatchListener#getLineQualifier()
+ */
+ public String getLineQualifier() {
+ return null;
+ }
+
}

Back to the top