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)

editDomain.setPaletteRoot(PaletteFactory.getPalette());
PaletteViewerProvider paletteViewerProvider = new PaletteViewerProvider(editDomain);
PaletteViewerPage page = new PaletteViewerPage(paletteViewerProvider);
initPage(page);
page.createControl(book);
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:text editor sample - status
Next Topic:GEF binaries for 64 bit eclipse
Goto Forum:
  


Current Time: Wed Dec 17 21:43:03 GMT 2014

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

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