Class DefaultMarkerHelper

  • Direct Known Subclasses:
    ViewModelMarkerHelper

    public class DefaultMarkerHelper
    extends org.eclipse.emf.edit.ui.util.EditUIMarkerHelper
    Default implementation of the MarkerHelper that accounts for the fact that the ValidationServiceDelegate unloads its resource set before markers are created, so that objects in the diagnostics are proxies by the time markers are created.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void adjustMarker​(org.eclipse.core.resources.IMarker marker, org.eclipse.emf.common.util.Diagnostic diagnostic, org.eclipse.emf.common.util.Diagnostic parentDiagnostic)
      Add attributes to store the URIs of the problematic object and the feature (if any).
      protected void createMarkers​(org.eclipse.core.resources.IResource resource, org.eclipse.emf.common.util.Diagnostic diagnostic, org.eclipse.emf.common.util.Diagnostic parentDiagnostic)  
      protected org.eclipse.core.resources.IFile getFile​(java.lang.Object datum)  
      protected java.lang.String getMarkerID()  
      • Methods inherited from class org.eclipse.emf.edit.ui.util.EditUIMarkerHelper

        adjustMarker, deleteMarkers, getDiagnosticData, getInstrinciDiagnostics, getMarkerDiagnostics, getTargetObjects, hasMarkers
      • Methods inherited from class org.eclipse.emf.common.ui.MarkerHelper

        composeMessage, createMarkers, deleteMarkers, deleteMarkers, getDiagnosticSource, getEditorInput, getFile, getFile, getIntrinsicDiagnostics, getMarkerDiagnostics, getTargetObjects, hasMarkers, hasMarkers, updateMarkers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMarkerHelper

        public DefaultMarkerHelper()
        Initializes me.
    • Method Detail

      • getMarkerID

        protected java.lang.String getMarkerID()
        Overrides:
        getMarkerID in class org.eclipse.emf.common.ui.MarkerHelper
      • getFile

        protected org.eclipse.core.resources.IFile getFile​(java.lang.Object datum)
        Overrides:
        getFile in class org.eclipse.emf.edit.ui.util.EditUIMarkerHelper
      • createMarkers

        protected void createMarkers​(org.eclipse.core.resources.IResource resource,
                                     org.eclipse.emf.common.util.Diagnostic diagnostic,
                                     org.eclipse.emf.common.util.Diagnostic parentDiagnostic)
                              throws org.eclipse.core.runtime.CoreException
        Overrides:
        createMarkers in class org.eclipse.emf.common.ui.MarkerHelper
        Throws:
        org.eclipse.core.runtime.CoreException
      • adjustMarker

        protected void adjustMarker​(org.eclipse.core.resources.IMarker marker,
                                    org.eclipse.emf.common.util.Diagnostic diagnostic,
                                    org.eclipse.emf.common.util.Diagnostic parentDiagnostic)
                             throws org.eclipse.core.runtime.CoreException
        Add attributes to store the URIs of the problematic object and the feature (if any). Match exactly the specification or main and related URIs attributes expected by EMF's marker utility.
        Overrides:
        adjustMarker in class org.eclipse.emf.edit.ui.util.EditUIMarkerHelper
        Throws:
        org.eclipse.core.runtime.CoreException