Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Need to move rectilinear links in diagram
Need to move rectilinear links in diagram [message #175880] Thu, 06 March 2008 05:33 Go to next message
Sandip is currently offline SandipFriend
Messages: 39
Registered: July 2009
Member
Hi Guys,

Incase I set the Routing style as Rectilinear in the ConnectionEditPart,
then once the diagram comes up, I cannot move the lines any more.

RoutingStyle style = (RoutingStyle) ((View)
getModel()).getStyle(NotationPackage.Literals.ROUTING_STYLE) ;

style.setAvoidObstructions(true);
style.setRouting(Routing.RECTILINEAR_LITERAL);

The intention is to have a rectilinear routing style for connections by
default, but atleast we should be able to move the lines in the diagram
once they are drawn.

Any hints are welcome.
Re: Need to move rectilinear links in diagram [message #175889 is a reply to message #175880] Thu, 06 March 2008 08:06 Go to previous message
Sandip is currently offline SandipFriend
Messages: 39
Registered: July 2009
Member
If we remove the setAvoidObstruction(true) code in the editpart it seems
to work, but only on NS or EW directions.
Previous Topic:[Announce] UML2 Tools at EclipseCon 2008
Next Topic:Edge to shortcut missing problem
Goto Forum:
  


Current Time: Thu Apr 25 09:38:25 GMT 2024

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

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

Back to the top