Class MarkerSupportRegistry

java.lang.Object
org.eclipse.ui.views.markers.internal.MarkerSupportRegistry
All Implemented Interfaces:
IExtensionChangeHandler

public class MarkerSupportRegistry extends Object implements IExtensionChangeHandler
The ProblemFilterRegistryReader is the registry reader for declarative problem filters. See the org.eclipse.ui.markerSupport extension point.
Since:
3.2
  • Field Details

  • Method Details

    • getInstance

      public static MarkerSupportRegistry getInstance()
      Get the instance of the registry.
      Returns:
      MarkerSupportRegistry
    • addExtension

      public void addExtension(IExtensionTracker tracker, IExtension extension)
      Description copied from interface: IExtensionChangeHandler
      This method is called whenever an extension conforming to the extension point filter is being added to the registry. This method does not automatically register objects to the tracker.
      Specified by:
      addExtension in interface IExtensionChangeHandler
      Parameters:
      tracker - a tracker to which the handler has been registered
      extension - the extension being added
    • getRegisteredFilters

      public Collection<ProblemFilter> getRegisteredFilters()
      Get the collection of currently registered filters.
      Returns:
      Collection of ProblemFilter
    • removeExtension

      public void removeExtension(IExtension extension, Object[] objects)
      Description copied from interface: IExtensionChangeHandler
      This method is called after the removal of an extension.
      Specified by:
      removeExtension in interface IExtensionChangeHandler
      Parameters:
      extension - the extension being removed
      objects - the objects that were associated with the removed extension
    • getCategory

      public String getCategory(IMarker marker)
      Get the category associated with marker. Return null if there are none.
      Returns:
      String or null
    • getCategory

      public String getCategory(String markerType)
      Get the category associated with markerType. Return null if there are none.
      Returns:
      String or null
    • getSorterFor

      public TableComparator getSorterFor(String type)
      Return the TableSorter that corresponds to type.
      Returns:
      TableSorter
    • getMarkerGroups

      public Collection<MarkerGroup> getMarkerGroups()
      Return the FieldMarkerGroups in the receiver.
      Returns:
      Collection of MarkerGroup
    • getContentGenDescriptor

      public ContentGeneratorDescriptor getContentGenDescriptor(String id)
      Get the generator descriptor for id
      Returns:
      ContentGeneratorDescriptor or null.
    • getDefaultContentGenDescriptor

      public ContentGeneratorDescriptor getDefaultContentGenDescriptor()
      Return the default content generator descriptor.
      Returns:
      ContentGeneratorDescriptor
    • getMarkerGroup

      public MarkerGroup getMarkerGroup(String categoryName)
      Get the markerGroup associated with categoryName
      Returns:
      FieldMarkerGroup or null
    • getField

      public MarkerField getField(String id)
      Return the field that maps to id.
      Returns:
      MarkerField or null