Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » No connection handles visible
No connection handles visible [message #1721717] Fri, 29 January 2016 12:18 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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 13:43]

Report message to a moderator

Re: No connection handles visible [message #1721726 is a reply to message #1721717] Fri, 29 January 2016 13:42 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
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


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 15:14 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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] Tue, 12 April 2016 01:58 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
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 14:23 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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: Fri Apr 26 16:13:21 GMT 2024

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

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

Back to the top