Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection Selection Tolerance, Adjusting Connection Context, Automatic Layout
Connection Selection Tolerance, Adjusting Connection Context, Automatic Layout [message #911675] Wed, 12 September 2012 01:36 Go to next message
Eclipse UserFriend
Polyline tolerance.

For me, clicking polyline consumes pretty much time. I want to give it some tolerance likes GEF does to let user can easily select connection. Can I do this on Graphiti?



Adjusting CreateConnectionContext

https://raw.github.com/jeeeyul/graphiti-overview/master/net.jeeeyul.erd.resource/connection-figure1.png
Figure 1


As you can see on Figure 1, Creation Connection feedback shows negative mouse pointer to users.
Because, table can reference only tables, not columns.
In common sense, we know that user is not trying to connect table to column.

But ICreateConnectionContext is automatically populated, and there is no chance to adjust context.

I tried some hack in isloated space(inside of CreateConnectionFeature) to walk around this problem, but there were several side effects.

ToolBehaviorProvider provides a way to adjust location info for direct editing, I think it would be great what if there is some adjust method like ToolBehaviorProvider#getLocationInfo.

Each creatation of connection may have different sense, So I suggest that locate adjust method onto create connection feature.



Automatic Call of layout feature
https://raw.github.com/jeeeyul/graphiti-overview/master/net.jeeeyul.erd.resource/auto-layout.png
Figure 2


When I removed a column from a table, there will be an empty space.
I can manually call layout feature for resolve this problem,
But I think structural change of PEs should have to call layout feature automatically.




Thanks to great inventors and challengers.


Re: Connection Selection Tolerance, Adjusting Connection Context, Automatic Layout [message #911677 is a reply to message #911675] Wed, 12 September 2012 01:38 Go to previous message
Eclipse UserFriend
Sorry! I posted it to wrong forum. It's about Graphiti.
Previous Topic:separate property box while double clicking the node
Next Topic:qvto: Exception when invoking a helper method
Goto Forum:
  


Current Time: Tue Jul 15 02:32:41 EDT 2025

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

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

Back to the top