<!ELEMENT extension (consolePatternMatchListener*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT consolePatternMatchListener (enablement)>
<!ATTLIST consolePatternMatchListener
id CDATA #REQUIRED
class CDATA #REQUIRED
regex CDATA #REQUIRED
flags CDATA #IMPLIED
qualifier CDATA #IMPLIED>
IPatternMatchListenerDelegate
を実装する Java クラスの完全修飾名を指定します。java.util.regex.Pattern
で定義されていて、ストリングとして指定する必要があります (「Pattern.MULTILINE」または「MULTILINE」など)。regex
が含まれている可能性のある行を識別するために使用される単純な正規表現。この正規表現を含む行が見つかると、行の先頭から、このパターン・マッチャーの完全な regex
が検索されます。この属性の使用はオプションですが、この正規表現を含まない行が検索から除外されるため、パフォーマンスを大幅に向上できます。上の例では、コントリビュートされたコンソール・パターン・マッチャーがタイプ「exampleConsole」のコンソールに使用されます。<extension point=
"org.eclipse.ui.console.consolePatternMatchListener"
>
<consolePatternMatchListener class=
"com.example.ExampleConsolePatternMatcher"
id=
"com.example.ExampleConsolePatternMatcher"
regex=
".*foo.*"
>
<enablement>
<test property=
"org.eclipse.ui.console.consoleTypeTest"
value=
"exampleConsole"
/>
</enablement>
</consolePatternMatchListener>
</extension>
IConsole.getType()
の値をテストする Enablement 式のコンソール・タイプ・プロパティー・テスターを提供します。プロパティー・テスターの ID は org.eclipse.ui.console.consoleTypeTest
です。
Copyright (c) 2000, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html