Class AbstractMarkerWrapper

    • Constructor Detail

      • AbstractMarkerWrapper

        public AbstractMarkerWrapper​(Marker marker,
                                     org.eclipse.core.resources.IProject project)
        Creates a new instance.
        Parameters:
        marker - the wrapped marker, can't be null
        project - the project, can't be null
    • Method Detail

      • getStringPresentation

        public abstract String getStringPresentation()
        Gets string representation of the wrapped marker for view.
        Returns:
        string representation of the wrapped marker for view, never null.
      • getProject

        public final org.eclipse.core.resources.IProject getProject()
        Gets corresponding to the marker IProject.
        Returns:
        corresponding to the marker IProject, never null.
      • getMarkerId

        public String getMarkerId()
        Gets marker id. Id should be unique for project
        Returns:
        marker id, never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCreationDate

        public Date getCreationDate()
        Gets the marker's creation date.
        Returns:
        the marker's creation date, never null.
      • getMessage

        public String getMessage()
        Gets the marker's message.
        Returns:
        the marker's message, never null.
      • getSeverity

        public MarkerSeverity getSeverity()
        Gets the marker's severity.
        Returns:
        the marker's severity, never null.
      • getSourceType

        public String getSourceType()
        Gets the marker's source - the unique id corresponding to the group of object linked with this marker.
        Returns:
        the marker's source, never null.
      • getObject

        public abstract Object getObject()
        Gets the object the wrapped marker is associated with.
        Returns:
        the associated object, can be null when there is no linked EObject with Marker.
      • showMarker

        public abstract void showMarker()
        Opens editor (or activate navigator) corresponding to the object from getObject().
      • getLocation

        public String getLocation()
        Get problem location.
        Returns:
        the problem location, or "Unknown" string value
      • getCheckId

        public String getCheckId()
        Returns check id.
        Returns:
        check id, not null
      • getMarker

        protected Marker getMarker()
        Gets wrapped marker.
        Returns:
        wrapped marker, never null.