|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.search.ui.text.SearchMatchInformationProvider
org.eclipse.search.ui.text.AbstractSearchMatchInformationProvider
Abstract base class implementing a SearchMatchInformationProvider. Implementors only have
to implement scanFile(TextSearchMatchAccess) that calls
addLocation(int, int, int) for locations and addLineOffset(int) for the starting
offsets of lines.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.eclipse.search.ui.text.SearchMatchInformationProvider |
|---|
SearchMatchInformationProvider.LineInformation |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.search.ui.text.SearchMatchInformationProvider |
|---|
LOCATION_COMMENT, LOCATION_FUNCTION, LOCATION_IMPORT_OR_INCLUDE_STATEMENT, LOCATION_OTHER, LOCATION_PREPROCESSOR_DIRECTIVE, LOCATION_STRING_LITERAL |
| Constructor Summary | |
|---|---|
AbstractSearchMatchInformationProvider()
|
|
| Method Summary | |
|---|---|
protected void |
addLineOffset(int offset)
Adds the offset of another line to the list of offsets. |
protected void |
addLocation(int offset,
int length,
int kind)
Adds the location to the list of offsets. |
SearchMatchInformationProvider.LineInformation |
getLineInformation(TextSearchMatchAccess match)
Returns information about the lines containing the given match. |
int |
getLocationKind(TextSearchMatchAccess match)
Returns the kind of location the given match starts in. |
void |
reset()
Notification sent to tell a information provider to clear all cached information. |
protected abstract void |
scanFile(TextSearchMatchAccess matchAccess)
Called whenever information about a new file is requested. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractSearchMatchInformationProvider()
| Method Detail |
public void reset()
SearchMatchInformationProvider
reset in class SearchMatchInformationProviderprotected abstract void scanFile(TextSearchMatchAccess matchAccess)
matchAccess - provides access to the file to be scanned.protected final void addLineOffset(int offset)
offset - the offset of the next line
protected final void addLocation(int offset,
int length,
int kind)
public SearchMatchInformationProvider.LineInformation getLineInformation(TextSearchMatchAccess match)
SearchMatchInformationProvider
getLineInformation in class SearchMatchInformationProvidermatch - the match to get the line information for.
public int getLocationKind(TextSearchMatchAccess match)
SearchMatchInformationProvider
getLocationKind in class SearchMatchInformationProvidermatch - the match to get the location for
SearchMatchInformationProvider.
|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.