Class ResourceMarkerAnnotationModel

    • Constructor Detail

      • ResourceMarkerAnnotationModel

        public ResourceMarkerAnnotationModel​(IResource resource)
        Creates a marker annotation model with the given resource as the source of the markers.
        Parameters:
        resource - the resource
    • Method Detail

      • isAcceptable

        protected boolean isAcceptable​(IMarker marker)
        Description copied from class: AbstractMarkerAnnotationModel
        Determines whether the marker is acceptable as an addition to this model. If the marker, say, represents an aspect or range of no interest to this model, the marker is rejected.

        Subclasses must implement this method.

        Specified by:
        isAcceptable in class AbstractMarkerAnnotationModel
        Parameters:
        marker - the marker
        Returns:
        true if the marker is acceptable
      • update

        protected void update​(IMarkerDelta[] markerDeltas)
        Updates this model to the given marker deltas.
        Parameters:
        markerDeltas - the array of marker deltas
      • listenToMarkerChanges

        protected void listenToMarkerChanges​(boolean listen)
        Description copied from class: AbstractMarkerAnnotationModel
        Tells the model whether it should listen for marker changes.

        Subclasses must implement this method.

        Specified by:
        listenToMarkerChanges in class AbstractMarkerAnnotationModel
        Parameters:
        listen - true if this model should listen, and false otherwise
      • getResource

        protected IResource getResource()
        Returns the resource serving as the source of markers for this annotation model.
        Returns:
        the resource serving as the source of markers for this annotation model
        Since:
        2.0