|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.ui.services.marker.AbstractMarkerNavigationProvider
This class saves the editor associated with the goto operation so that utility methods in derived classes can access the editor instance before the doGotoMarker() method is called.
| Constructor Summary | |
AbstractMarkerNavigationProvider()
|
|
| Method Summary | |
protected abstract void |
doGotoMarker(IMarker marker)
Perform the marker navigation in a derived class. |
protected IEditorPart |
getEditor()
Retrieve the saved editor instance. |
void |
gotoMarker(IEditorPart edit,
IMarker marker)
Perform the feedback for navigating to the given marker. |
boolean |
provides(IOperation operation)
Indicates whether this provider provides the specified operation. |
protected void |
setEditor(IEditorPart anEditor)
Save the editor instance associated with the marker. |
| Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider |
addProviderChangeListener, removeProviderChangeListener |
| Constructor Detail |
public AbstractMarkerNavigationProvider()
| Method Detail |
protected void setEditor(IEditorPart anEditor)
anEditor - the editor instance to be savedprotected IEditorPart getEditor()
protected abstract void doGotoMarker(IMarker marker)
marker - the IMarker to go to
public void gotoMarker(IEditorPart edit,
IMarker marker)
gotoMarker in interface org.eclipse.gmf.runtime.common.ui.services.internal.marker.IMarkerNavigationProvideredit - the editor opened with the associated resourcemarker - the marker referenceIMarkerNavigationProvider.gotoMarker(org.eclipse.ui.IEditorPart,
org.eclipse.core.resources.IMarker)public boolean provides(IOperation operation)
IProvider
Providers generally cast the operation to a service specific
IOperation-derived class in order to determine whether they
support the request.
provides in interface IProvideroperation - The operation in question.
true if this provider provides the operation;
false otherwise.
|
Runtime | ||||||||||
| 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., Borland Software Corp., and others 2005,2006. All rights reserved.