Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Disable reconnection
Disable reconnection [message #1012043] Wed, 20 February 2013 14:19 Go to next message
Marek Jagielski is currently offline Marek Jagielski
Messages: 59
Registered: April 2012
Member
Hi,
Is it possible to disable reconnection in that way that you can not even drag an anchor. In other way that there is not "plus" showed when the mouse is over an anchor?
Thanks,
Marek
Re: Disable reconnection [message #1012925 is a reply to message #1012043] Fri, 22 February 2013 08:12 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1583
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Marek,

you can return false for the method canReconnect in the appropriate
Reconnection Feature.

Michael
Re: Disable reconnection [message #1013033 is a reply to message #1012925] Fri, 22 February 2013 11:28 Go to previous messageGo to next message
Marek Jagielski is currently offline Marek Jagielski
Messages: 59
Registered: April 2012
Member
Thanks Michael for reply.
The problem with canReconnect is that you can still drag the connection. It wouldn't be so bad, but I created a connection point that splits a connection and can be used to make forks. It is planed that connection point you can freely move. But the connection point has only 7 pixels. It is inconvenient to move this point as most of the tries I drag an anchor point that is on my connection point.
Marek
Re: Disable reconnection [message #1014640 is a reply to message #1013033] Tue, 26 February 2013 02:52 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1583
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Marek,

I'm afraid that is currently not possible. But I think that would be a
valuable extension to the reconnect functionality. I could imagine an
addtional method canStartReconnect that clients can override, that would be
roughtly the same as we have it in the create connection feature
(canStartConnection).

Would you please file an extension bugzilla for this?

Thanks,
Michael
Re: Disable reconnection [message #1014822 is a reply to message #1012043] Tue, 26 February 2013 09:32 Go to previous message
Marek Jagielski is currently offline Marek Jagielski
Messages: 59
Registered: April 2012
Member
Enhancement created in bugzilla,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=401792

Thanks,

Marek
Previous Topic:org.eclipse.graphiti.ui.editor.DiagramEditorInput
Next Topic:Graphiti fails to handle resize after custom feature addition
Goto Forum:
  


Current Time: Sat Aug 23 09:32:35 EDT 2014

Powered by FUDForum. Page generated in 0.02612 seconds