Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Update palette contents dynamically
Update palette contents dynamically [message #241594] Thu, 21 February 2008 18:22 Go to next message
Eclipse UserFriend
Originally posted by: s.boshev.prosyst.bg

Is there a way to update the contents of the palette dynamically? I need to
add/remove tools in the palette.
I've tried setting new PaletteRoot but it does not work.
Working solution to me would be to recreate the whole palette view. I was
not able to do this successfully :(

Many thanks,
StoBo
Re: Update palette contents dynamically [message #241599 is a reply to message #241594] Thu, 21 February 2008 18:57 Go to previous messageGo to next message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,

StoBo 写道:
> Is there a way to update the contents of the palette dynamically? I need to
> add/remove tools in the palette.
> I've tried setting new PaletteRoot but it does not work.
> Working solution to me would be to recreate the whole palette view. I was
> not able to do this successfully :(
>
> Many thanks,
> StoBo
>
>
>
You could refer to
org.eclipse.gef.ui.palette.customize.PaletteCustomizerDialog . such as
handleDelete()

Cheers,
Xiangay
Re: Update palette contents dynamically [message #241603 is a reply to message #241599] Thu, 21 February 2008 20:52 Go to previous message
Eclipse UserFriend
Originally posted by: s.boshev.prosyst.bg

It works now! Thank you very much

The palette can be manipulated by using its existing PaletteRoot. Its
methods for adding/removing tools work perfectly and update the palette
content.

My mistake was that I was trying to replace the PaletteRoot with new one
each time I need to change something in the palette.


"Qinxian" <fyaoxy@gmail.com> wrote in message
news:fpkhi1$7ga$1@build.eclipse.org...
> Hi,
>
> StoBo д
Previous Topic:SelectionAction: order of selectedObjects
Next Topic:creating multi-page editor from single-page editor using graphical editor of GEF
Goto Forum:
  


Current Time: Mon Sep 23 09:38:24 GMT 2024

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

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

Back to the top