|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.util.EventObject
org.eclipse.search.ui.SearchResultEvent
org.eclipse.search.ui.text.MatchEvent
An event object describing addition and removal of matches. Events of this
class are sent when Matches are added or removed from an
AbstractTextSearchResult.
Clients may instantiate or subclass this class.
| Field Summary | |
|---|---|
static int |
ADDED
Constant for a matches being added. |
static int |
REMOVED
Constant for a matches being removed. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MatchEvent(ISearchResult searchResult)
Constructs a new MatchEvent. |
|
| Method Summary | |
|---|---|
int |
getKind()
Tells whether this is a remove or an add. |
Match[] |
getMatches()
Returns the concerned matches. |
protected void |
setKind(int kind)
Sets the kind of event this is. |
protected void |
setMatch(Match match)
Sets the match for the change this event reports. |
protected void |
setMatches(Match[] matches)
Sets the matches for the change this event reports. |
| Methods inherited from class org.eclipse.search.ui.SearchResultEvent |
|---|
getSearchResult |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ADDED
getKind(),
Constant Field Valuespublic static final int REMOVED
getKind(),
Constant Field Values| Constructor Detail |
public MatchEvent(ISearchResult searchResult)
MatchEvent.
searchResult - the search result concerned| Method Detail |
public int getKind()
ADDED or REMOVEDpublic Match[] getMatches()
protected void setKind(int kind)
kind - the kind to set; either ADDED or REMOVEDprotected void setMatch(Match match)
match - the match to setprotected void setMatches(Match[] matches)
matches - the matches to set
|
Eclipse Platform Release 3.3 |
|||||||||||
| 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, 2007. All rights reserved.