|
|
Re: dynamical loading/adding of pallettes ? editing of pallette items [message #150894 is a reply to message #150827] |
Wed, 15 September 2004 08:45 |
Eclipse User |
|
|
|
Originally posted by: dyx.gmx.net
I have seen that. It allows for customization.
I have also taken a look at the source from logic example
and at org.eclipse.gef.ui.palette.customize and the different
PaletteEntryFactory classes
provided.
But I don't see how I can create a new palette with that.
I mean like load one from a file.
frank
PS: On another note: Is the GEF API on the web somehere?
The Help system is running very slow on my machine.
"Pratik Shah" <ppshah@us.ibm.com> schrieb im Newsbeitrag
news:ci77f4$6go$1@eclipse.org...
> Right-click the palette in the logic example, and select "Customize."
>
> "frank" <dyx@gmx.net> wrote in message news:ci7699$4a3$1@eclipse.org...
> > Hi,
> > I need to implement a gef editor which can add/load pallettes.
> > Has anyone done this before?
> >
> > How about editing the pallette. Is it possible to add/delete new
> > items/models?
> >
> > Thanks for any advice,
> > a newbie
> >
> >
>
>
|
|
|
Re: dynamical loading/adding of pallettes ? editing of pallette items [message #150902 is a reply to message #150894] |
Wed, 15 September 2004 13:27 |
Eclipse User |
|
|
|
Originally posted by: gaslade.yahoo.com
The Palette is just another GEF editor with a model and edit parts
driving it. You could create a palette manager object whose job it is to
build the palette entries and return the PaletteRoot object with the
entries in it. When you need to dynamically change the palette contents
( add/remove entries ) the palette manager would simply add or remove
children of the PaletteRoot object.
I do this in my editor...my editor listens for project nature changes
and when one happens tells the palette manager to update. The palette
manager changes what the palette contains to what is appropriate for the
project natures.
frank wrote:
> I have seen that. It allows for customization.
> I have also taken a look at the source from logic example
> and at org.eclipse.gef.ui.palette.customize and the different
> PaletteEntryFactory classes
> provided.
>
> But I don't see how I can create a new palette with that.
> I mean like load one from a file.
>
> frank
>
>
> PS: On another note: Is the GEF API on the web somehere?
> The Help system is running very slow on my machine.
>
>
>
> "Pratik Shah" <ppshah@us.ibm.com> schrieb im Newsbeitrag
> news:ci77f4$6go$1@eclipse.org...
>
>>Right-click the palette in the logic example, and select "Customize."
>>
>>"frank" <dyx@gmx.net> wrote in message news:ci7699$4a3$1@eclipse.org...
>>
>>>Hi,
>>>I need to implement a gef editor which can add/load pallettes.
>>>Has anyone done this before?
>>>
>>>How about editing the pallette. Is it possible to add/delete new
>>>items/models?
>>>
>>>Thanks for any advice,
>>>a newbie
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds