| Summary: | [Navigator] Navigator View should have a "Collapse All" button | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sebastian Davids <sdavids> | ||||||
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | ||||||||
| Version: | 2.1 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Sebastian Davids
Created attachment 2334 [details]
Icon from org.eclipse.jdt.ui
The attached icon is a copy from project org.eclipse.jdt.ui.
It has to be placed into the icons/full/elcl16 folder of the project
org.eclipse.ui.
Created attachment 2335 [details]
Implements the "Collapse All" feature
@@ CollapseAllAction @@
I copied the method getImageDescriptor(String) from
org.eclipse.ui.views.framelist.FrameAction.
It could be placed as a protected member function into class
ResourceNavigatorAction; so future subclasses would also be able to have an
icon -- I did not do so because I wanted to keep the number of affected classes
down.
I placed the icon's file name and path as string constants directly into the
code -- instead of placing them into a properties file -- because the
subclasses of FrameAction do so too.
@@ MainActionGroup @@
I added the CollapseAllAction directly to MainAction group instead of creating
a CollapseActionGroup because creating a "group" for one action doesn't make
sense in this particular case.
*** This bug has been marked as a duplicate of 14641 *** |