Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Add tool into palette on runtime
Add tool into palette on runtime [message #1061790] Tue, 04 June 2013 05:19 Go to next message
zhipeng cao is currently offline zhipeng caoFriend
Messages: 1
Registered: June 2013
Junior Member
I want to add a tool into palette on runtime. But I don't know how to do it. Can somebody give me some advise? It is better to show me the code. Thank you very much.
Re: Add tool into palette on runtime [message #1063155 is a reply to message #1061790] Wed, 12 June 2013 13:53 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
You have to get the PaletteRoot model object (from your GraphicalEditorWithFlyoutPalette editor) and then add an PaletteEntry to it.
It should refreshChildren in the palette for you automatically.
Previous Topic:GEF with SWT as view
Next Topic:Draw2D 3.9 with Eclipse 4.2.1 has incorrect rendering output
Goto Forum:
  


Current Time: Fri Apr 26 21:58:46 GMT 2024

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

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

Back to the top