Accessing the palette [message #192240] |
Wed, 17 August 2005 16:12 |
Eclipse User |
|
|
|
Originally posted by: gef.oppacher.ca
Is it possible to get access to the pallete from an editor part? Also what
would be the best way to dynamically add entries to a palette? The user
can create files (templates) that can be used later as part of a graphical
editor. I would like these to show up in the graphical editor once they
have been created by the user. Is it best to put this code inside the
specific editor and recreate the palette when the editor gains focus?
Thanks
|
|
|
Re: Accessing the palette [message #192247 is a reply to message #192240] |
Wed, 17 August 2005 18:32 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"Yandu" <gef@oppacher.ca> wrote in message
news:a4b440a78abb0d534b8c282f4765809c$1@www.eclipse.org...
> Is it possible to get access to the pallete from an editor part? Also what
> would be the best way to dynamically add entries to a palette? The user
> can create files (templates) that can be used later as part of a graphical
> editor. I would like these to show up in the graphical editor once they
> have been created by the user. Is it best to put this code inside the
> specific editor and recreate the palette when the editor gains focus?
>
If you add children to your palette model, they will automatically show up
in the palette.
I have implemented exactly what you describe in a project I am working on.
---
Sunil
|
|
|
Powered by
FUDForum. Page generated in 0.02652 seconds