Class ProblemFilter

java.lang.Object
org.eclipse.ui.views.markers.internal.MarkerFilter
org.eclipse.ui.views.markers.internal.ProblemFilter
All Implemented Interfaces:
Cloneable

public class ProblemFilter extends MarkerFilter
ProblemFilters are the filters used in the problems view.
  • Field Details

  • Constructor Details

    • ProblemFilter

      public ProblemFilter(String filterName)
      Create a new instance of the receiver with name filterName.
      Parameters:
      filterName - A human readable name for the filter.
  • Method Details

    • selectMarker

      public boolean selectMarker(ConcreteMarker marker)
      Description copied from class: MarkerFilter
      Subclasses should override to determine if the given marker passes the filter.
      Overrides:
      selectMarker in class MarkerFilter
      Parameters:
      marker - unused, but can be used in overrides
      Returns:
      true if the marker passes the filter and false otherwise
    • getContains

      public boolean getContains()
      Get the value for if there is a check for containing a phrase.
      Returns:
      boolean
    • getDescription

      public String getDescription()
      Get the value for the description.
      Returns:
      boolean
    • getSelectBySeverity

      public boolean getSelectBySeverity()
      Get the value for if there is a check for severity.
      Returns:
      boolean
    • getSeverity

      public int getSeverity()
      Get the value for if there is a severity.
      Returns:
      boolean
    • setContains

      public void setContains(boolean contains)
      Set the value for if there is a check for containing a phrase.
    • setDescription

      public void setDescription(String description)
      Set the value for the description.
    • setSelectBySeverity

      public void setSelectBySeverity(boolean selectBySeverity)
      Set the value for if there is a check for severity
    • setSeverity

      public void setSeverity(int severity)
      Set the value for the severity to match against.
    • resetState

      public void resetState()
    • restoreFilterSettings

      public void restoreFilterSettings(IDialogSettings settings)
      Description copied from class: MarkerFilter
      Restore the state of the receiver in the supplied settings. This is kept for backwards compatibility with 3.1 dialog settings.
      Overrides:
      restoreFilterSettings in class MarkerFilter
    • restoreFilterSettings

      protected void restoreFilterSettings(IMemento memento)
      Description copied from class: MarkerFilter
      Restore the state of the receiver in the supplied settings.
      Overrides:
      restoreFilterSettings in class MarkerFilter
    • saveFilterSettings

      public void saveFilterSettings(IMemento settings)
      Description copied from class: MarkerFilter
      Save the filter settings for the receiver.
      Overrides:
      saveFilterSettings in class MarkerFilter
    • getId

      public String getId()
      Get the id of the filter. null if the filter is user defined.
      Returns:
      String
    • isFilteredOutByActivity

      public boolean isFilteredOutByActivity()
      Return whether or not the receiver will be filtered out due to an activity match.
      Returns:
      boolean true if it is filtered out.
    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class MarkerFilter
      Returns:
      • true if the filter is enabled.
      • false if the filter is not enabled.