Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Maeder2004-04-19 14:53:18 +0000
committerThomas Maeder2004-04-19 14:53:18 +0000
commit081a1e1c6b96703c8deb94475aba9d8328aa00d2 (patch)
tree7c1c041f147e3c23da30eb92906ca74582d7efe7 /org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java
parentb43103afedb2c66aca7de0f0cc30676259c0225d (diff)
downloadeclipse.platform.text-081a1e1c6b96703c8deb94475aba9d8328aa00d2.tar.gz
eclipse.platform.text-081a1e1c6b96703c8deb94475aba9d8328aa00d2.tar.xz
eclipse.platform.text-081a1e1c6b96703c8deb94475aba9d8328aa00d2.zip
Javadoc
Diffstat (limited to 'org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java')
-rw-r--r--org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java34
1 files changed, 11 insertions, 23 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java b/org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java
index 63cda131431..12b74756835 100644
--- a/org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java
+++ b/org.eclipse.search/new search/org/eclipse/search/ui/SearchResultEvent.java
@@ -7,26 +7,21 @@
* Contributors: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.search.ui;
+
+import java.util.EventObject;
+
/**
- * The common superclass of all events sent from ISearchResults. This class is
- * supposed to be subclassed to provide more specific notification.
+ * The common superclass of all events sent from <code>ISearchResults</code>.
+ * This class is supposed to be subclassed to provide more specific
+ * notification.
*
- * TODO see tags are done by @see
- * see {@link org.eclipse.search.ui.ISearchResultListener#searchResultChanged(SearchResultEvent)}
- *
- * Question ? Shouldn't this be a sublcass of event object ?
- *
- * This API is preliminary and subject to change at any time.
+ * @see org.eclipse.search.ui.ISearchResultListener#searchResultChanged(SearchResultEvent)
*
* @since 3.0
*/
-public abstract class SearchResultEvent {
- protected ISearchResult fSearchResult;
+public abstract class SearchResultEvent extends EventObject {
protected SearchResultEvent(ISearchResult searchResult) {
- fSearchResult= searchResult;
- }
- protected SearchResultEvent() {
- this(null);
+ super(searchResult);
}
/**
* Gets the <code>ISearchResult</code> for this event.
@@ -34,13 +29,6 @@ public abstract class SearchResultEvent {
* @return The source of this event.
*/
public ISearchResult getSearchResult() {
- return fSearchResult;
- }
- /**
- * Sets the search result for this event.
- * @param searchResult The searchResult to set.
- */
- protected void setSearchResult(ISearchResult searchResult) {
- fSearchResult= searchResult;
+ return (ISearchResult) getSource();
}
-}
+} \ No newline at end of file

Back to the top