Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Platform UI MarkersView"

(markerContentGenerator)
Line 6: Line 6:
 
In 3.4 the MarkerSupportView was added to allow clients to create thier own markers views more suited to thier applications. A MarkerSupportView is created by referring to the markerContentGenerator.
 
In 3.4 the MarkerSupportView was added to allow clients to create thier own markers views more suited to thier applications. A MarkerSupportView is created by referring to the markerContentGenerator.
  
==markerContentGenerator==
+
==MarkerContentGenerator==
 +
 +
The markerContentGenerator is the base element for defining a custom markers view. When creating a subclass of MarkerSupportView you pass in the id of the markerContentGenerator to use for it.
 +
 
 +
A markerContentGenerator contains
 +
* markerFieldReferences. References to the id of the markerFields to be used by the view. The columns in the view are displayed in order of their references.
 +
* markerTypeReferences. References to the org.eclipse.core.resource.markers that will be shown in this view. Note that the subtypes of all referenced markers are shown as well
 +
*markerFieldConfigurations. Configurations that will be available by default to the view. The user may modify these or add thier own using the Configure Contents command
 +
*markerGroupings. The markerGroupings are those that will be shown in the Group By entries of the view. Note that markerGrouping can be defined as a top level element but this will only be supported in the supplied ProblemsView for backwards compatibility reasons.

Revision as of 16:23, 19 March 2008

Template:Platform UI

Markers View

The pre 3.4 implementation of a view for Tasks, Bookmarks and Problems is not sufficient for how many people are using markers. See the org.eclipse.ui.ide.markerSupport schema for full details.

In 3.4 the MarkerSupportView was added to allow clients to create thier own markers views more suited to thier applications. A MarkerSupportView is created by referring to the markerContentGenerator.

MarkerContentGenerator

The markerContentGenerator is the base element for defining a custom markers view. When creating a subclass of MarkerSupportView you pass in the id of the markerContentGenerator to use for it.

A markerContentGenerator contains

  • markerFieldReferences. References to the id of the markerFields to be used by the view. The columns in the view are displayed in order of their references.
  • markerTypeReferences. References to the org.eclipse.core.resource.markers that will be shown in this view. Note that the subtypes of all referenced markers are shown as well
  • markerFieldConfigurations. Configurations that will be available by default to the view. The user may modify these or add thier own using the Configure Contents command
  • markerGroupings. The markerGroupings are those that will be shown in the Group By entries of the view. Note that markerGrouping can be defined as a top level element but this will only be supported in the supplied ProblemsView for backwards compatibility reasons.

Back to the top