Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 188987

Summary: [Markers] Marker views (such as Problems and Tasks view) should provide additional filtering based on the current selection
Product: [Eclipse Project] Platform Reporter: David Cummings <dcummin>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 162505    
Bug Blocks:    

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.