Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dynamically add/remove PaletteEntries
Dynamically add/remove PaletteEntries [message #494769] Mon, 02 November 2009 15:26 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: November 2009
Junior Member
Hi all,

I need dynamically add/remove PaletteContainer items to PaletteRoot or make them visible/invisible.
setVisibble() method as well as add()/remove() don't show any changes.
How can I refresh changed PaletteRoot structure or any other workaround?
Can I close and open again entire palette?

Slava

Re: Dynamically add/remove PaletteEntries [message #495056 is a reply to message #494769] Tue, 03 November 2009 16:24 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 295
Registered: July 2009
Senior Member
The palette is a standard GEF based "editor", too, using the GEF MVC
design pattern. That is, PaletteEntry is the base class for the palette
model. Usually, simply modifying the model (i.e. some PaletteEntry
derived class) should work, the change is then propagated via the
EditParts (which are registered as listeners to the model) to the view.

Cheers

Jens

On 2009-11-02 16:26:01 +0100, <slavaraitsin@yahoo.com> said:

> Hi all,
>
> I need dynamically add/remove PaletteContainer items to PaletteRoot or
> make them visible/invisible.
> setVisibble() method as well as add()/remove() don't show any changes.
> How can I refresh changed PaletteRoot structure or any other
> workaround? Can I close and open again entire palette?
>
> Slava
Previous Topic:Is it possible to mix code and graphical widgets in GEF?
Next Topic:[Draw2D]Howto comsume mouse event inside a Figure on top of a Canvas
Goto Forum:
  


Current Time: Fri Dec 26 17:13:49 GMT 2014

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

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