Text Search Match Information Provider

org.eclipse.search.textSearchMatchInformationProvider

3.2

The extension point allows to register a provider of more information for text search matches

<!ELEMENT extension (textSearchMatchInformationProvider+ , textSearchDefaultFilePatterns+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED>


<!ELEMENT textSearchMatchInformationProvider EMPTY>

<!ATTLIST textSearchMatchInformationProvider

class                CDATA #REQUIRED

fileExtensions       CDATA #IMPLIED

contentTypeIDs       CDATA #IMPLIED

supportsComments     (true | false)

supportsStrings      (true | false)

supportsIncludes     (true | false)

supportsPreprocessor (true | false)

supportsFunctions    (true | false) >


<!ELEMENT textSearchDefaultFilePatterns EMPTY>

<!ATTLIST textSearchDefaultFilePatterns

filePatterns CDATA #IMPLIED>

A list of file patterns the user can select when searching text files.



As an example, here is the markup for the java scanner.

<extension id=

"JavaScanner"

point=

"org.eclipse.search.textSearchMatchInformationProvider"

>

<textSearchMatchInformationProvider class=

"org.eclipse.search2.internal.ui.text2.JavaScanner"

contentTypeIDs=

"org.eclipse.jdt.core.javaSource"

fileExtensions=

".java"

supportsComments=

"true"

supportsStrings=

"true"

supportsIncludes=

"true"

/>

</extension>

The contributed class must implement org.eclipse.search.ui.text.SearchMatchInformationProvider

The search plugin provides both a scanner for java-files and for c/c++-files.