public class MatchEvent
extends org.eclipse.search.ui.SearchResultEvent
Modifier and Type | Field and Description |
---|---|
static int |
ADDED
Constant for a matches being added.
|
static int |
REMOVED
Constant for a matches being removed.
|
Modifier | Constructor and Description |
---|---|
protected |
MatchEvent(org.eclipse.search.ui.ISearchResult searchResult)
Constructs a new
MatchEvent . |
Modifier and Type | Method and Description |
---|---|
int |
getKind()
Tells whether this is a remove or an add.
|
ModelSearchMatch[] |
getMatches()
Returns the concerned matches.
|
protected void |
setKind(int kind)
Sets the kind of event this is.
|
protected void |
setMatch(ModelSearchMatch match)
Sets the match for the change this event reports.
|
protected void |
setMatches(ModelSearchMatch[] matches)
Sets the matches for the change this event reports.
|
public static final int ADDED
getKind()
,
Constant Field Valuespublic static final int REMOVED
getKind()
,
Constant Field Valuesprotected MatchEvent(org.eclipse.search.ui.ISearchResult searchResult)
MatchEvent
.searchResult
- the search result concernedpublic int getKind()
ADDED
or REMOVED
public ModelSearchMatch[] getMatches()
protected void setKind(int kind)
kind
- the kind to set; either ADDED
or REMOVED
protected void setMatch(ModelSearchMatch match)
match
- the match to setprotected void setMatches(ModelSearchMatch[] matches)
matches
- the matches to set