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:Draw2D 3.9 with Eclipse 4.2.1 has incorrect rendering output
Next Topic:[ZEST] Problems with DotImport Zest 2.0
Goto Forum:

Current Time: Thu Apr 26 04:22:51 GMT 2018

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

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