The state of the palette defines if it is open or closed. This state is accessible using the getPalettePreferences().setPaletteState()
method that is accessible in the GraphicalEditorWithFlyoutPalette
. To open the palette, you must set it to the FlyoutPaletteComposite.STATE_PINNED_OPEN
, like this:
getPalettePreferences().setPaletteState(FlyoutPaletteComposite.STATE_PINNED_OPEN);
If you want to ALWAYS override the state so that the palette is always opened with the editor, you have to add the line to the constructor of your editor. If you only want to do this once, and then leave the state as it was last selected by the user... No idea how to do this :-(