|Adjusting CreateConnectionContext [message #915388]
||Mon, 17 September 2012 07:30
|| Jeeeyul Lee
Registered: July 2009
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(commented by Christian Brand - let some methods works against of column context) in isolated space(inside of CreateConnectionFeature) to walk around this problem, but there were several side effects in Feedback UI:
* When connection started from column, feedback seems to uses column PE's chopbox anchor, not table.
* Target table may be highlighted when mouse is over. But column will be highlighted because it is active PE.
I can use transformed context for canCreate, canStartConnection, create, but I can't handle automatically populated feedback UI. so, I think transforming context should have to be part of graphiti.
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.
Powered by FUDForum
. Page generated in 0.04307 seconds