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 cao
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 Krakora
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: Wed Sep 24 04:47:53 GMT 2014

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

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