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

Bug 139661

Summary: Allow access to PaletteEditParts
Product: [Tools] GEF Reporter: David Dubrow <david.dubrow>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Dubrow CLA 2006-05-02 09:11:53 EDT
We make dynamic changes to the palette and wish ro restore the open state of the drawers. However, DrawerEditPart which provides access to the state is in an internal package.
Comment 1 Randy Hudson CLA 2006-05-02 10:30:43 EDT
The place to do this is in the model. There is already API to control the drawer's initial open state.
Comment 2 David Dubrow CLA 2006-05-02 11:14:27 EDT
Yes, to set the state of the drawers we do this in the model. However, to get the open state of the drawers, there seems to be no other way than to query the edit parts.

Comment 3 Randy Hudson CLA 2006-05-02 11:31:25 EDT
You can ask the guy who is displaying the palette model:
PaletteViewer.isExpanded(PaletteDrawer)
Comment 4 David Dubrow CLA 2006-05-02 14:48:19 EDT
Thanks. :)