Community
Participate
Working Groups
These actions are particularly useful when the tree displays many elements using a deep hierarchy : it could be a good way to reset the tree contents to its initial state (all elements are collapsed) or to quickly expand all elements to explore the whole contents of the tree. I propose to define a new style in the EmfMasterDetailBlock class that will be used to configure the buttons so that the user can have these buttons visible in the TreeViewer's toolbar.
Created attachment 170188 [details] Proposed patch defining a new style to configure buttons Options
The collapse.gif and expand.gif images could be retrieved from existing Eclipse projects or directly from the following URLs: - http://iconlet.com/info/18660_collapse_16x16 - http://iconlet.com/info/20380_expandall_16x16
Created attachment 170793 [details] Support Expand/Collapse buttons - v2 New patch with minor improvements : use setRedraw(false) and setRedraw(true) to avoid unnecessary UI updates while the tree is being expanded/collapsed.
FIXED in HEAD > 20100616 Thanks Jacques ;)
Created attachment 172054 [details] mylyn/context/zip
Benjamin, you simply forget to add the two icons ("collapse.gif" and "expand.gif") in the "icons/obj16" folder.
Oops, done.