Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Docking palette of widgets within the editor
Docking palette of widgets within the editor [message #1720299] Sat, 16 January 2016 12:41 Go to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,
I have a question about the docking of pallete widgets, which is part of the editor (no Palette View). I have implemented graphic editor using the GEF (class GraphicalEditorWithFlyoutPalette). The palette can be docked implicitly left or right. I want to ask whether it would be possible palette to docked up of editor. If so, how?

Thanks for any advice.
Re: Docking palette of widgets within the editor [message #1720482 is a reply to message #1720299] Mon, 18 January 2016 21:05 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Moving this to the GEF forum group.
Re: Docking palette of widgets within the editor [message #1720533 is a reply to message #1720482] Tue, 19 January 2016 08:35 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
This does not work out-of-the-box. You will have to subclass FlyoutPaletteComposite (and GraphicalEditorWithFlyoutPalette) to realize this behavior. FlyoutPaletteComposite is the composite that contains both viewers, the palette viewer and the graphical viewer. You will have to adjust it (and some of its contained inner classes) to support docking on the NORTH. You will also have to subclass GraphicalEditorWithFlyoutPalette to return your alternative FlyoutPaletteComposite within createPaletteComposite(Composite).
Re: Docking palette of widgets within the editor [message #1720535 is a reply to message #1720482] Tue, 19 January 2016 08:40 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
This does not work out of the box. You will need to provide a custom implementation for FlyoutPaletteComposite (which supports what you request) and you will also need to subclass GraphicalEditorWithFlyoutPalette to overwrite createPaletteComposite(Composite) there.
Previous Topic:draw2d: How to get the height of word wrapped text
Next Topic:[Zest] Use Swt Widget for rendering nodes
Goto Forum:
  


Current Time: Thu Mar 28 10:34:07 GMT 2024

Powered by FUDForum. Page generated in 0.02796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top