Skip to main content



      Home
Home » Eclipse Projects » GEF » Palette change
Palette change [message #109986] Wed, 24 December 2003 06:16 Go to next message
Eclipse UserFriend
Originally posted by: jgonzalo99.hotmail.com

Hi all.

When I do: paletteEntry.setVisible(false);
How can I refresh the palette?

Thanks in advance.
Re: Palette change [message #110024 is a reply to message #109986] Wed, 24 December 2003 16:16 Go to previous message
Eclipse UserFriend
Are you making your own palette or something? If you are using the existing
palette framework, this should already work for you.

In any case, to answer your question, this is how the GEF palette does it: a
drawer/group edit part listens for visibility changes in the model of its
children, and invokes refreshChildren() when PaletteEntry.PROPERTY_VISIBLE
is fired. The getModelChildren() method of that drawer/group edit part only
returns the model children that are visible. Look at PaletteEditPart to see
how this is done.


"Jose Luis" <jgonzalo99@hotmail.com> wrote in message
news:bsbsj4$re1$1@eclipse.org...
> Hi all.
>
> When I do: paletteEntry.setVisible(false);
> How can I refresh the palette?
>
> Thanks in advance.
>
>
Previous Topic:Installing GEF correctly
Next Topic:anti-aliasing again
Goto Forum:
  


Current Time: Thu Sep 18 08:50:46 EDT 2025

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

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

Back to the top