|Re: Maximizing/Minimizing views [message #625692 is a reply to message #559925]
||Wed, 22 September 2010 10:04
| Sun Volland
Registered: September 2010
Me again, I finally found the solution by looking at how the Eclipse SDK model was setup.|
First I added the following addons to my application model :
<addons elementId="MinMax Addon" contributionURI="platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
<addons elementId="DnD Addon" contributionURI="platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon"/>
<addons elementId="Cleanup Addon" contributionURI="platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon"/>
Note that these are provided by the org.eclipse.e4.ui.workbench.addons.swt bundle.
Strangely only adding the MinMaxAddon is not enough. I got the minimize/maximize icons on the stacks, but the behaviour is broken.
Then I defined the editor stack (the stack that can be maximized) in my E4 xmi model by :
- setting the id of the corresponding PartStack to org.eclipse.ui.editorss
- adding an EditorStack tag to it
And now it works !
However It seems that there is little redrawing bug when maximizing/restoring the editor stack : the restored stacks do not always render their tabs correctly. Moving the sash does instantly redraw the tabs.
I get the same bug in my Eclipse E4 SDK install, so I guess it has nothing to do with my app (running on Linux SuSE SLED 11.0 32 bits with KDE)
Powered by FUDForum
. Page generated in 0.02242 seconds