Bug 188987 - [Markers] Marker views (such as Problems and Tasks view) should provide additional filtering based on the current selection
Summary: [Markers] Marker views (such as Problems and Tasks view) should provide addit...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on: 162505
Blocks:
  Show dependency tree
 
Reported: 2007-05-24 13:46 EDT by David Cummings CLA
Modified: 2008-01-18 10:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cummings CLA 2007-05-24 13:46:45 EDT
Marker views (such as the Tasks and Problems view) allow filtering based on a MarkerFilter.  A marker filter allows filtering based on:
 * On any element
 * On any element in same project
 * On selected element only
 * On selected element and its children
 * On working set

For the "selected element only" and "selected element and its children" options, the element that the user has selected is adapted to a Resource.  For cases where the selected element is a resource, such as a Java file, this is sufficient).  Unfortunately in cases where the selection is not a resource (such as an object in a GEF/GMF diagram), this can confuse the user.  Every element in their diagram will adapt to the same resource, thus no matter the selection in their diagram, all markers for that resource will be shown.

Marker filtering for the "selected element only" and "selected element and its children" should be more robust, allowing clients to contribute selection filter helpers.  Clients could contribute, through an extension point, a class that maps a given selection to a given marker, and determines whether the marker is applicable for the selection.  In the extension clients could define:
a) Which types of selections the class is applicable for
b) Which types of markers the class is applicable for
c) The class itself, which accepts an object (or collection of objects) and a marker and determines whether or not the marker is applicable for the given selection

If none of these contributions were present, the default resource adapter functionality would remain.
Comment 1 Tod Creasey CLA 2008-01-18 10:50:47 EST
We support ResourceMappings as of 3.2.