|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.ui.MarkerHelper
Provides methods to simplify the work with IMarker
s. The main goal is to
simplify the creation of markers using the information described in
Diagnostic
s.
Constructor Summary | |
MarkerHelper()
|
Method Summary | |
protected void |
adjustMarker(IMarker marker,
Diagnostic diagnostic,
Diagnostic parentDiagnostic)
Clients should override this method to update the marker associated with the diagnostic. |
protected String |
composeMessage(Diagnostic diagnostic,
Diagnostic parentDiagnostic)
Returns the message that will be used with the marker associated with the given diagnostic. |
void |
createMarkers(Diagnostic diagnostic)
Creates a marker based on the information available in the specified diagnostic. |
protected void |
createMarkers(IResource resource,
Diagnostic diagnostic,
Diagnostic parentDiagnostic)
|
protected void |
deleteMarkers(IResource resource,
boolean includeSubtypes,
int depth)
|
void |
deleteMarkers(Object object)
Deletes a maker with id equals to the return of getMarkerID()
from the IResource computed from the specified object. |
void |
deleteMarkers(Object object,
boolean includeSubtypes,
int depth)
|
IEditorInput |
getEditorInput(Object object)
|
protected IFile |
getFile(Diagnostic diagnostic)
|
protected IFile |
getFile(Object datum)
|
protected IFile |
getFile(URI uri)
|
protected String |
getMarkerID()
|
protected boolean |
hasMarkers(IResource resource,
boolean includeSubtypes,
int depth)
|
boolean |
hasMarkers(Object object)
Returns whether the a maker with id equals to the return of getMarkerID()
is available in the IResource computed from the specified object. |
boolean |
hasMarkers(Object object,
boolean includeSubtypes,
int depth)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MarkerHelper()
Method Detail |
protected String getMarkerID()
protected IFile getFile(Object datum)
protected IFile getFile(Diagnostic diagnostic)
protected IFile getFile(URI uri)
public void createMarkers(Diagnostic diagnostic) throws CoreException
Creates a marker based on the information available in the specified
diagnostic. The marker's id is defined by getMarkerID()
.
The default implementation looks in the diagnostic's data array for objects that would allow an IFile to be computed
diagnostic
-
CoreException
protected void createMarkers(IResource resource, Diagnostic diagnostic, Diagnostic parentDiagnostic) throws CoreException
CoreException
protected void adjustMarker(IMarker marker, Diagnostic diagnostic, Diagnostic parentDiagnostic) throws CoreException
marker
- the marker to be updated.diagnostic
- the diagnostic associated with the marker.parentDiagnostic
- the parent of the diagnostic, if any.
CoreException
protected String composeMessage(Diagnostic diagnostic, Diagnostic parentDiagnostic)
diagnostic
- the diagnostic.parentDiagnostic
- the parent of the diagnostic, if any.
public boolean hasMarkers(Object object)
getMarkerID()
is available in the IResource computed from the specified object.
object
-
public boolean hasMarkers(Object object, boolean includeSubtypes, int depth)
protected boolean hasMarkers(IResource resource, boolean includeSubtypes, int depth)
public void deleteMarkers(Object object)
getMarkerID()
from the IResource computed from the specified object.
object
-
public void deleteMarkers(Object object, boolean includeSubtypes, int depth)
protected void deleteMarkers(IResource resource, boolean includeSubtypes, int depth)
public IEditorInput getEditorInput(Object object)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |