Skip to main content



      Home
Home » Eclipse Projects » Sirius » No connection handles visible
No connection handles visible [message #1721717] Fri, 29 January 2016 07:18 Go to next message
Eclipse UserFriend
Hi all,

I've noticed that no connection handles appear when hovering a diagram
node. Is this a different behaviour compared to raw GMF or is there
anything to do to enable this functionality?

Thanks,
Axel

[Updated on: Fri, 29 January 2016 08:43] by Moderator

Re: No connection handles visible [message #1721726 is a reply to message #1721717] Fri, 29 January 2016 08:42 Go to previous messageGo to next message
Eclipse UserFriend
Le 29/01/2016 13:18, Axel Guckelsberger a écrit :
> Hi all,
>

Hi,

> I've noticed that no connection handles appear when hovering a diagram
> node. Is this a different behaviour compared to raw GMF oder is there
> anything to do to enable this functionality?
>

This feature has been disabled in Sirius with code
removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
in Sirius edit parts(AbstractDiagramContainerEditPart,
AbstractDiagramListEditPart, DNode*EditPart).

It is maybe possible to re-activate them by using the extension point
"org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders", to provide
again the ConnectionHandleEditPolicy (like in
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.createDefaultEditPolicies()).

But there are probably some additional constraints with the
preconditions (and/or extra mappings) defined in the VSM for the edge
creation tools.

> Thanks,
> Axel

Regards,
--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: No connection handles visible [message #1721737 is a reply to message #1721726] Fri, 29 January 2016 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Laurent,

thank you for elaborating.

I can live with that. Just wanted to know whether I may have broken
something.

Best regards,
Axel


Am 29.01.2016 um 14:42 schrieb Laurent Redor:
> Le 29/01/2016 13:18, Axel Guckelsberger a écrit :
>> Hi all,
>>
>
> Hi,
>
>> I've noticed that no connection handles appear when hovering a diagram
>> node. Is this a different behaviour compared to raw GMF oder is there
>> anything to do to enable this functionality?
>>
>
> This feature has been disabled in Sirius with code
> removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
> in Sirius edit parts(AbstractDiagramContainerEditPart,
> AbstractDiagramListEditPart, DNode*EditPart).
>
> It is maybe possible to re-activate them by using the extension point
> "org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders", to provide
> again the ConnectionHandleEditPolicy (like in
> org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.createDefaultEditPolicies()).
>
>
> But there are probably some additional constraints with the
> preconditions (and/or extra mappings) defined in the VSM for the edge
> creation tools.
>
>> Thanks,
>> Axel
>
> Regards,
Re: No connection handles visible [message #1729192 is a reply to message #1721737] Mon, 11 April 2016 21:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi Axel,

I was wondering if you were successful in activating ConnectionHandle or not ? I could enable using customStyles and installing edit policity:

protected void createDefaultEditPolicies() {
ConnectionHandleEditPolicy a = new ConnectionHandleEditPolicy();
installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, a);
}

but It throws me some nullpointerException when I click on the handle. Not sure where am I doing wrong...

Thanks,
Best Regards,
Parsa
Re: No connection handles visible [message #1729383 is a reply to message #1729192] Wed, 13 April 2016 10:23 Go to previous message
Eclipse UserFriend
Hi Parsa,

unfortunately not yet.

I started with implementing an IEditPolicyProvider providing a
CreateEditPoliciesOperation. This works in general. You can click on the
handles and drag them. But it does not know the possible relationship
types yet, so there is still something missing.

Regards,
Axel


Am 12.04.2016 um 03:58 schrieb Parsa Pourali:
> Hi Axel,
>
> I was wondering if you were successful in activating ConnectionHandle or
> not ? I could enable using customStyles and installing edit policity:
>
> protected void createDefaultEditPolicies() {
> ConnectionHandleEditPolicy a = new ConnectionHandleEditPolicy();
> installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, a);
> }
>
> but It throws me some nullpointerException when I click on the handle.
> Not sure where am I doing wrong...
>
> Thanks,
> Best Regards,
> Parsa
Previous Topic:Eclipse/EMF/Sirius Developer (Paris, France)
Next Topic:[SOLVED] How to direct edit BeginLabel/CenterLabel/EndLabel of an Edge?
Goto Forum:
  


Current Time: Wed Mar 26 17:50:47 EDT 2025

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

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

Back to the top