Package com._1c.g5.v8.dt.ui.validation
Class BmMarkerWrapper
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.validation.AbstractMarkerWrapper
-
- com._1c.g5.v8.dt.ui.validation.BmMarkerWrapper
-
- All Implemented Interfaces:
Comparable<AbstractMarkerWrapper>
- Direct Known Subclasses:
GraphicalSchemeMarkerWrapper
public class BmMarkerWrapper extends AbstractMarkerWrapper
Special implementation ofAbstractMarkerWrapper
forMarker
associated withIBmObject
This wrapper corresponding to the next source - "MdValidationChecker" and "FormValidationChecker"
-
-
Field Summary
Fields Modifier and Type Field Description protected IBmModelManager
modelManager
Bm model manager.protected OpenHelper
openHelper
Open editor helper.
-
Constructor Summary
Constructors Constructor Description BmMarkerWrapper(Marker marker, org.eclipse.core.resources.IProject project, IBmModelManager modelManager, IV8ProjectManager projectManager, ISymbolicLinkLocalizer symbolicLinkLocalizer, OpenHelper openHelper)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocation()
Get problem location.Object
getObject()
Gets the object the wrapped marker is associated with.String
getStringPresentation()
Gets string representation of the wrapped marker for view.void
showMarker()
Opens editor (or activate navigator) corresponding to the object fromAbstractMarkerWrapper.getObject()
.-
Methods inherited from class com._1c.g5.v8.dt.ui.validation.AbstractMarkerWrapper
compareTo, equals, getCheckId, getCreationDate, getMarker, getMarkerId, getMessage, getProject, getSeverity, getSourceType, hashCode
-
-
-
-
Field Detail
-
openHelper
protected OpenHelper openHelper
Open editor helper.
-
modelManager
protected IBmModelManager modelManager
Bm model manager.
-
-
Constructor Detail
-
BmMarkerWrapper
public BmMarkerWrapper(Marker marker, org.eclipse.core.resources.IProject project, IBmModelManager modelManager, IV8ProjectManager projectManager, ISymbolicLinkLocalizer symbolicLinkLocalizer, OpenHelper openHelper)
Creates a new instance.- Parameters:
marker
- the wrapped marker, can't benull
.project
- the project the marker is attached to, can't benull
.modelManager
- theIBmModelManager
instance, can't benull
.projectManager
- theIV8ProjectManager
instance, can't benull
.symbolicLinkLocalizer
- theISymbolicLinkLocalizer
instance, can't benull
.openHelper
- service for for opening and activating editors, can't benull
.
-
-
Method Detail
-
getLocation
public String getLocation()
Description copied from class:AbstractMarkerWrapper
Get problem location.- Overrides:
getLocation
in classAbstractMarkerWrapper
- Returns:
- the problem location, or
"Unknown"
string value
-
getObject
public Object getObject()
Description copied from class:AbstractMarkerWrapper
Gets the object the wrapped marker is associated with.- Specified by:
getObject
in classAbstractMarkerWrapper
- Returns:
- the associated object, can be
null
when there is no linkedEObject
withMarker
.
-
showMarker
public void showMarker()
Description copied from class:AbstractMarkerWrapper
Opens editor (or activate navigator) corresponding to the object fromAbstractMarkerWrapper.getObject()
.- Specified by:
showMarker
in classAbstractMarkerWrapper
-
getStringPresentation
public String getStringPresentation()
Description copied from class:AbstractMarkerWrapper
Gets string representation of the wrapped marker for view.- Specified by:
getStringPresentation
in classAbstractMarkerWrapper
- Returns:
- string representation of the wrapped marker for view,
never
null
.
-
-