GMF: annoying popup window when creating connections [message #654353] |
Tue, 15 February 2011 11:17 |
|
Hi all,
in a GMF graphical editor, when I drag a connector, the framework displays a popup window showing text "Create [myConnection] to Existing Element/Create [myConnection] to New Element"; this is very annoying, and I have to eliminate it or, at least, customize its behaviour to show custom types. I googled a lot, but I'm unable to find the related implementation classes to subclass or modify them.
Is there somebody who knows about?
Thanks,
Giovanni
|
|
|
|
Re: GMF: annoying popup window when creating connections [message #655118 is a reply to message #655103] |
Fri, 18 February 2011 12:02 |
|
Hello Romain,
thank you for your help, but the POPUPBAR_ROLE is not what I need; as you can see by javadoc:
/**
* The key used to install a <i>popup bar</i> EditPolicy. The popup bar
* will be activated during mouse hover for the editpart.
*/
public static final String POPUPBAR_ROLE = "PopupBarEditPolicy";
this role is responsible for showing a list of possible object to create when you move the mouse hover the editPart; moreover, I uninstalled this role yet.
My problem come in when I use the Palette button to create a connection: I select the source (a Node) and then I drag the mouse on a blank side of diagram; at that time the popup appears.
This behaviour is built-in in classes org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeCrea tionTool and UnspecifiedTypeConnectionTool, as the javadoc says:
/**
* This specialized creation tool adds support for a multi-type creation tool.
* That is, the tool is given a list of element types and when the user completes
* the gesture, a popup appears asking the user to pick one of the element types
* to be created.
*
* @author cmahoney
*/
I came up here........
|
|
|
|
Re: GMF: annoying popup window when creating connections [message #655483 is a reply to message #655129] |
Mon, 21 February 2011 10:50 |
|
Hi Romain,
unfortunately I removed the EditPolicyRoles.CONNECTION_HANDLES_ROLE editPolicy yet, it doesn't do the work. Your suggestion about Link Constraints it's interesting, but I cannot relaunch the GMF tooling now, the code was freezed a few months ago, I can just extend it.
Maybe you know a way to obtain same result without regenerate the code?
Thanks,
Giovanni
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02128 seconds