Package org.eclipse.emfforms.ide.builder
Class DefaultMarkerHelper
- java.lang.Object
-
- org.eclipse.emf.common.ui.MarkerHelper
-
- org.eclipse.emf.edit.ui.util.EditUIMarkerHelper
-
- org.eclipse.emfforms.ide.builder.DefaultMarkerHelper
-
- Direct Known Subclasses:
ViewModelMarkerHelper
public class DefaultMarkerHelper extends org.eclipse.emf.edit.ui.util.EditUIMarkerHelper
Default implementation of theMarkerHelper
that accounts for the fact that theValidationServiceDelegate
unloads its resource set before markers are created, so that objects in the diagnostics are proxies by the time markers are created.
-
-
Constructor Summary
Constructors Constructor Description DefaultMarkerHelper()
Initializes me.
-
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
-
-
-
-
Method Detail
-
getMarkerID
protected java.lang.String getMarkerID()
- Overrides:
getMarkerID
in classorg.eclipse.emf.common.ui.MarkerHelper
-
getFile
protected org.eclipse.core.resources.IFile getFile(java.lang.Object datum)
- Overrides:
getFile
in classorg.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 classorg.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 classorg.eclipse.emf.edit.ui.util.EditUIMarkerHelper
- Throws:
org.eclipse.core.runtime.CoreException
-
-