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.EditUIMarkerHelperDefault implementation of theMarkerHelperthat accounts for the fact that theValidationServiceDelegateunloads 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 voidadjustMarker(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 voidcreateMarkers(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.IFilegetFile(java.lang.Object datum)protected java.lang.StringgetMarkerID()-
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:
getMarkerIDin classorg.eclipse.emf.common.ui.MarkerHelper
-
getFile
protected org.eclipse.core.resources.IFile getFile(java.lang.Object datum)
- Overrides:
getFilein 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:
createMarkersin 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.CoreExceptionAdd 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:
adjustMarkerin classorg.eclipse.emf.edit.ui.util.EditUIMarkerHelper- Throws:
org.eclipse.core.runtime.CoreException
-
-