Skip to main content



      Home
Home » Eclipse Projects » GEF » how to save palette
how to save palette [message #164646] Wed, 19 January 2005 13: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 14:37 Go to previous message
Eclipse UserFriend
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: Mon Jun 16 06:46:24 EDT 2025

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

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

Back to the top