public class DefaultMarkerBehavior
extends java.lang.Object
DiagramBehavior behavior extension
that controls how markers are handled in the editor. Clients may subclass to
change the marker behavior; use DiagramBehavior.createMarkerBehavior()
to return the instance that shall be used.DiagramBehavior.| Constructor and Description |
|---|
DefaultMarkerBehavior(DiagramBehavior diagramBehavior)
Creates a new instance of
DefaultMarkerBehavior that is
associated with the given DiagramBehavior. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.common.util.Diagnostic |
analyzeResourceProblems(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.Exception exception)
Returns a diagnostic describing the errors and warnings listed in the
resource and the specified exception (if any).
|
void |
disableProblemIndicationUpdate()
Can be called to (temporarily) disable the marker update adapter, so that
mass changes do not result in a bunch of notifications and cause
performance penalties.
|
void |
dispose()
Called to dispose this instance when the editor is closed.
|
void |
enableProblemIndicationUpdate()
Can be called to enable the marker update adapter again after it has been
disabled with
disableProblemIndicationUpdate(). |
org.eclipse.emf.ecore.util.EContentAdapter |
getProblemIndicationAdapter()
Returns the adapter that is installed for updating the markers.
|
void |
initialize()
Initializes this marker behavior extension.
|
public DefaultMarkerBehavior(DiagramBehavior diagramBehavior)
DefaultMarkerBehavior that is
associated with the given DiagramBehavior.diagramBehavior - the associated DiagramBehaviorpublic void initialize()
public org.eclipse.emf.ecore.util.EContentAdapter getProblemIndicationAdapter()
public void disableProblemIndicationUpdate()
enableProblemIndicationUpdate()public void enableProblemIndicationUpdate()
disableProblemIndicationUpdate(). The default
implementation also triggers an update of the markers.public org.eclipse.emf.common.util.Diagnostic analyzeResourceProblems(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.Exception exception)
resource - the resource to analyzeexception - forwarded as data object to the BasicDiagnosticDiagnostic for the given resourcepublic void dispose()