Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to save palette
how to save palette [message #164646] Wed, 19 January 2005 18:33 Go to next message
Eclipse UserFriend
Originally posted by: tm_trvs.yahoo.com

hi

i have an editor with flyout palette and i add tool entries to one palette
container at run-time
i want to save those tools somehow when i stop my app and recreate the
palette when i restart
i think i have to use saveState() from PaletteViewer, correct?
but how can access paletteviewer?
Re: how to save palette [message #164661 is a reply to message #164646] Wed, 19 January 2005 19:37 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
No, saveState() is not what you want. You need to save the palette's model,
the PaletteRoot. Your editor is the one that's supposed to provide the root
(in the getPaletteRoot() method), so you can simply hang on to it, or you
can retrive it at anytime via
getEditDomain().getPaletteViewer().getPaletteRoot().

"tom travis" <tm_trvs@yahoo.com> wrote in message
news:csm95m$db3$1@www.eclipse.org...
> hi
>
> i have an editor with flyout palette and i add tool entries to one palette
> container at run-time
> i want to save those tools somehow when i stop my app and recreate the
> palette when i restart
> i think i have to use saveState() from PaletteViewer, correct?
> but how can access paletteviewer?
>
>
Previous Topic:Label used as ConnectionAnchor not being painted correctly.
Next Topic:feasiblility study about automated generating GEF-based Editor?
Goto Forum:
  


Current Time: Wed Sep 18 20:49:08 GMT 2024

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

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

Back to the top