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

      • showMarker

        public abstract void showMarker()
        Opens editor (or activate navigator) corresponding to the object from IMarkerWrapper.getObject().
      • 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.
      • getLocation

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

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

        public String getMarkerId()
        Description copied from interface: IMarkerWrapper
        Gets marker id. Id should be unique for project
        Specified by:
        getMarkerId in interface IMarkerWrapper
        Returns:
        marker id, never null
      • getProject

        public final org.eclipse.core.resources.IProject getProject()
        Description copied from interface: IMarkerWrapper
        Gets corresponding to the marker IProject.
        Specified by:
        getProject in interface IMarkerWrapper
        Returns:
        corresponding to the marker IProject, never null.
      • isCustom

        public boolean isCustom()
        Description copied from interface: IMarkerWrapper
        Indicates that the marker contains check ID
        Specified by:
        isCustom in interface IMarkerWrapper
        Returns:
        true if the marker contains check ID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object