Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » change the text on the popup connection arrow menu?
change the text on the popup connection arrow menu? [message #145484] Mon, 06 August 2007 14:58 Go to next message
Eclipse UserFriend
Hello,
I would like to know if it is possible to change the text on the text
labels on the popup menu when a connection arrow is dragged and let go
on nothing. I currently have a Note Attachement and a "Create
TranstionType to" with sub entries "New Element: myType"...

I would like to change the "New Element" and the "Create TranstionType
to" to my own custom text. Is this possible, and could you give me a
place to start looking in the code to do so.

Thank you very much.
Brian
Re: change the text on the popup connection arrow menu? [message #146224 is a reply to message #145484] Fri, 10 August 2007 14:13 Go to previous message
Eclipse UserFriend
Brian,

The label is created in the PromptForConnectionAndEndCommand. You
should be able to override this by installing a custom
ContainerNodeEditPolicy on your diagram and/or shape compartment
editparts and overriding the method getPromptForConnectionAndEndCommand().

Regards,
Cherie

Brian Jakubik wrote:
> Hello,
> I would like to know if it is possible to change the text on the text
> labels on the popup menu when a connection arrow is dragged and let go
> on nothing. I currently have a Note Attachement and a "Create
> TranstionType to" with sub entries "New Element: myType"...
>
> I would like to change the "New Element" and the "Create TranstionType
> to" to my own custom text. Is this possible, and could you give me a
> place to start looking in the code to do so.
>
> Thank you very much.
> Brian
Previous Topic:Opening new document on double click element
Next Topic:GMF toolbar and menu contributions - where?
Goto Forum:
  


Current Time: Sat May 10 11:14:21 EDT 2025

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

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

Back to the top