Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to disable the hover controls in GMF generated code
How to disable the hover controls in GMF generated code [message #634034] Wed, 20 October 2010 10:47 Go to next message
Sorin Silaghi is currently offline Sorin SilaghiFriend
Messages: 16
Registered: October 2010
Junior Member
Hello,


I'm doing a GMF based plugin and I'd like to remove the controls that appear by default when hovering over the diagram. I'm not sure what they're called but it's basically "Add Node" and "Click and drag to create connection". I'm don't know if this is related to GEF at all but this seems the forum closest to this issue.

thank you,
Sorin.
Re: How to disable the hover controls in GMF generated code [message #634083 is a reply to message #634034] Wed, 20 October 2010 13:16 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

You'd rather ask it on the GMF forum, but I think what you want is only to remove some editPolicies.
Create an IEditPolicyProvider, add it to your diagram using an extension point with a LOWEST priority, and put the following lines in the createEditPolicies method:
editPart.removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES _ROLE);
editPart.removeEditPolicy(EditPolicyRoles.POPUPBAR_ROLE);

HTH

Le 20/10/2010 12:47, Sorin Silaghi a écrit :
> Hello,
>
>
> I'm doing a GMF based plugin and I'd like to remove the controls that
> appear by default when hovering over the diagram. I'm not sure what
> they're called but it's basically "Add Node" and "Click and drag to
> create connection". I'm don't know if this is related to GEF at all but
> this seems the forum closest to this issue.
> thank you,
> Sorin.


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: How to disable the hover controls in GMF generated code [message #634087 is a reply to message #634083] Wed, 20 October 2010 13:44 Go to previous message
Sorin Silaghi is currently offline Sorin SilaghiFriend
Messages: 16
Registered: October 2010
Junior Member
Thanks that makes sense. I'll give it a try.
Previous Topic:Drag&Drop Palette elements in a grid
Next Topic:Why "setSmoothness()" doesn't work?
Goto Forum:
  


Current Time: Thu Apr 25 17:29:23 GMT 2024

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

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

Back to the top