Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dockable GEF Palette .....How ??(How do i make my GEF Palette view ..... dockable ?? )
Dockable GEF Palette .....How ?? [message #647565] Fri, 07 January 2011 05:20
EclipseNoob  is currently offline EclipseNoob Friend
Messages: 10
Registered: December 2010
Junior Member
Hii guys .... I have created a GEF Palettte ..... something like this .....

Class XYZPalette extends PaletteView {

protected IPage createDefaultPage(PageBook book) {

EditDomain editDomain = new EditDomain();

// Here .... in PaletteFactory.getPalette() ..... i create a new PaletteRoot , attach //PaletteChildren to the root ( I use PaletteDrawers and PaletteGroup for my //components and tool respectively and return the PaletteRoot)

PaletteViewerProvider paletteViewerProvider = new PaletteViewerProvider(editDomain);
PaletteViewerPage page = new PaletteViewerPage(paletteViewerProvider);
PaletteViewer paletteViewer = editDomain.getPaletteViewer();
paletteViewer.setContextMenu(new ServicePaletteContextMenuProvider(paletteViewer));

return page;

I have an Graphical editor .... and the PaletteView and the editor are related ....... I want to make my GEF Palette Dockable ..... it should autohide ....... and i should have the option to pin the Palette on my workbench ......

I assume .... i Have to use FlyoutPaletteComposite ...... here to make my palette Dockable ,,,,, What i am unable to figure out is .... where and how do i use the FlyOutPaletteComposite ???

Plzz Help me out .....

Thanx in advance !!!!!

Previous Topic:Scrollbar in GEF Palette
Next Topic:Need optimized way to display tree items
Goto Forum:

Current Time: Mon Jun 18 15:52:09 GMT 2018

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

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

Back to the top