Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to get active palette tool name?
how to get active palette tool name? [message #99378] Wed, 31 January 2007 07:50 Go to next message
dzh is currently offline dzhFriend
Messages: 10
Registered: July 2009
Junior Member
how to get active palette tool name, Such as the name of paletteTool:
"EMPBatchActivity" ?


Re: how to get active palette tool name? [message #99578 is a reply to message #99378] Wed, 31 January 2007 14:44 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
The popup bar on the diagram background is populated with the items from
the palette. Take a look at the code in DiagramPopupBarEditPolicy to
figure out how to get the active palette tool.

I think once you have the PaletteToolEntry you want you can just do
getLabel() on it to get the name.

Regards,
Cherie

bobywolf wrote:
> how to get active palette tool name, Such as the name of paletteTool:
> "EMPBatchActivity" ?
>
>
>
Previous Topic:Generate GMF diagram for an EMF model
Next Topic:@Override directive: Eclipse bug or reference error ?
Goto Forum:
  


Current Time: Thu Dec 26 14:13:27 GMT 2024

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

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

Back to the top