diff options
-rw-r--r-- | org.eclipse.ui.console/schema/consolePatternMatchListeners.exsd | 21 | ||||
-rw-r--r-- | org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java | 4 |
2 files changed, 19 insertions, 6 deletions
diff --git a/org.eclipse.ui.console/schema/consolePatternMatchListeners.exsd b/org.eclipse.ui.console/schema/consolePatternMatchListeners.exsd index 244f083b2..7bb88393a 100644 --- a/org.eclipse.ui.console/schema/consolePatternMatchListeners.exsd +++ b/org.eclipse.ui.console/schema/consolePatternMatchListeners.exsd @@ -6,7 +6,7 @@ <meta.schema plugin="org.eclipse.ui.console" id="consolePatternMatchListeners" name="Console Pattern Match Listeners"/>
</appInfo>
<documentation>
- This extension point provides notification when console input or output matches a specified regular expression.
+ Provides regular expression matching for text consoles. Pattern match listeners can be contributed to specific consoles by using an enablement expression. Listeners are notified as matches are found.
</documentation>
</annotation>
@@ -49,7 +49,7 @@ <attribute name="id" type="string" use="required">
<annotation>
<documentation>
- specifies a unique identifier for this Console Pattern Match Listener
+ specifies a unique identifier for this console pattern match listener
</documentation>
</annotation>
</attribute>
@@ -63,7 +63,7 @@ <attribute name="regex" type="string" use="required">
<annotation>
<documentation>
- specifies the regular expression that should be matched
+ specifies the regular expression to be matched
</documentation>
</annotation>
</attribute>
@@ -77,7 +77,7 @@ <attribute name="qualifier" type="string">
<annotation>
<documentation>
- a simple regular expression used to identify a line that may contain this pattern match listener's complete regular expression <code>regex</code>. When a line is found containing this expression, a search is performed from the beginning of the line for this pattern matcher's complete <code>regex</code>. Use of this attribute is optional but can greatly improve performance as lines not containing this expression can be disqualified from the search.
+ a simple regular expression used to identify a line that may contain this pattern match listener's complete regular expression <code>regex</code>. When a line is found containing this expression, a search is performed from the beginning of the line for this pattern matcher's complete <code>regex</code>. Use of this attribute is optional but can greatly improve performance as lines not containing this expression are disqualified from the search.
</documentation>
</annotation>
</attribute>
@@ -107,12 +107,12 @@ id="com.example.ExampleConsolePatternMatcher" regex=".*foo.*"> <enablement> - <instanceof value="com.example.ExampleConsole"/> + <test property="org.eclipse.ui.console.consoleTypeTest" value="exampleConsole"/> </enablement> </consolePatternMatchListener> </extension> </pre> -In the above example, the contributed console pattern matcher will be used for console of type "ExampleConsole."
+In the above example, the contributed console pattern matcher will be used for consoles with a type of "exampleConsole."
</documentation>
</annotation>
@@ -127,6 +127,15 @@ In the above example, the contributed console pattern matcher will be used for c <annotation>
<appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ The console plug-in provides a console type property tester for enablement expressions that tests the value of <code>IConsole.getType()</code>. The property tester's identifier is <code>org.eclipse.ui.console.consoleTypeTest</code>.
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java index e58334857..634ad3484 100644 --- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java +++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java @@ -85,6 +85,10 @@ public interface IConsoleManager { * to be used in a new console. No methods on the participants have been * called. Clients are responsible for connecting to and disconnecting from * the pattern match listeners. + * <p> + * Console pattern match listeners are contributed via the + * <code>org.eclipse.ui.console.consolePatternMatchListeners</code> extension point. + * </p> * * @param console the console for which pattern match listeners are requested * @return a collection of new pattern match listeners |