No connection handles visible [message #1721717] |
Fri, 29 January 2016 07:18  |
Eclipse User |
|
|
|
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 #1721737 is a reply to message #1721726] |
Fri, 29 January 2016 10:14   |
Eclipse User |
|
|
|
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 #1729383 is a reply to message #1729192] |
Wed, 13 April 2016 10:23  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds