|
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
org.eclipse.gmf.runtime.emf.ui.providers.marker.AbstractModelMarkerNavigationProvider
public abstract class AbstractModelMarkerNavigationProvider
Abstract Model Marker Navigation Provider this abstract class provides the necessary wrapping required to perform model operations related to the navigation of markers. If the marker attributes contain model element information that needs to be resolved, the corresponding marker provider should be derived from this class.
Derived classes should implement the getContext() and the doGotoMarker() methods. The latter method will be called within a model read operation.
Constructor Summary | |
---|---|
AbstractModelMarkerNavigationProvider()
|
Method Summary | |
---|---|
protected java.util.List |
getEObjects(java.util.List ids,
org.eclipse.emf.ecore.resource.Resource resource)
Given a list of element IDs, looks up the elements, themselves, and returns them in the same order. |
protected org.eclipse.emf.ecore.resource.Resource |
getResource(IMarker marker)
Determines the EMF resource to which a marker is attached. |
void |
gotoMarker(IEditorPart editor,
IMarker marker)
Perform the feedback for navigating to the given marker within a model read action. |
Methods inherited from class org.eclipse.gmf.runtime.common.ui.services.marker.AbstractMarkerNavigationProvider |
---|
doGotoMarker, getEditor, provides, setEditor |
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 AbstractModelMarkerNavigationProvider()
Method Detail |
---|
public final void gotoMarker(IEditorPart editor, IMarker marker)
gotoMarker
in interface org.eclipse.gmf.runtime.common.ui.services.internal.marker.IMarkerNavigationProvider
gotoMarker
in class AbstractMarkerNavigationProvider
editor
- the editor opened with the associated resourcemarker
- the marker referenceIMarkerNavigationProvider.gotoMarker(org.eclipse.ui.IEditorPart,
org.eclipse.core.resources.IMarker)
protected org.eclipse.emf.ecore.resource.Resource getResource(IMarker marker)
marker
- a marker
null
if either
the marker doesn't exist
or its resource
cannot be loaded by EMFprotected java.util.List getEObjects(java.util.List ids, org.eclipse.emf.ecore.resource.Resource resource)
The ids
passed to this method should follow a couple of
conventions for compactness of implementation in a marker:
resource
resource
must be a fully-qualified URI
(i.e., it must include a resource URI part)
ids
- a list of element IDs, as described aboveresource
- the resource that has a marker from which the list of
IDs was extracted. URI fragments in the ids
list are
assumed to be relative to this resource's URI. Must not be
null
EObject
s, in the same order as
the ids
, though not including any elements that could
not be located (due to stale IDs)
|
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.