Text Search Match Information Provider
Identifier:
org.eclipse.search.textSearchMatchInformationProvider
Since:
3.2
Description:
The extension point allows to register a provider of more information for text search matches
Configuration Markup:
<!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) >
- class - Class of the scanner that will be created, must extend org.eclipse.search.ui.text.SearchMatchInformationProvider.
- fileExtensions - Comma separated list of file-extensions for which the information provider shall be applied. E.g. '.c,.h,.cpp'. In case an extension does not start with a dot, a match against the complete file-name will be attempted. E.g. 'Makefile,.mk'
- contentTypeIDs - A comma-separated list of content type ids for which the supplied information provider shall be used. E.g.: 'org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cppSource'
- supportsComments - True, if the information provider can detect comments. False, otherwise.
- supportsStrings - True, if the information provider can detect string literals False, otherwise.
- supportsIncludes - True, if the information provider can detect include or import statements. False, otherwise.
- supportsPreprocessor - True, if the information provider can detect preprocessor directives. False, otherwise.
- supportsFunctions - True, if the information provider can detect function bodies. False, otherwise.
<!ELEMENT textSearchDefaultFilePatterns EMPTY>
<!ATTLIST textSearchDefaultFilePatterns
filePatterns CDATA #IMPLIED>
A list of file patterns the user can select when searching text files.
- filePatterns - The file patterns to be presented to the user. E.g.: *.java,*.xml,*.mf
Examples:
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>
API Information:
The contributed class must implement org.eclipse.search.ui.text.SearchMatchInformationProvider
Supplied Implementation:
The search plugin provides both a scanner for java-files and for c/c++-files.
Copyright (c) 2006 Wind River Systems 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