Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » dynamical loading/adding of pallettes ? editing of pallette items
dynamical loading/adding of pallettes ? editing of pallette items [message #150825] Tue, 14 September 2004 16:45 Go to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

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 #150827 is a reply to message #150825] Tue, 14 September 2004 16:53 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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 #150894 is a reply to message #150827] Wed, 15 September 2004 08:45 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>>>
>>>
>>
>>
>
>
Previous Topic:Draw2D Anchor Change Location Question
Next Topic:Outline View
Goto Forum:
  


Current Time: Fri Jan 17 06:04:29 GMT 2025

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

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

Back to the top