Creation Problem with connector of PolylineConnectionEx type [message #892741] |
Fri, 29 June 2012 12:57 |
Abbas Mohd Messages: 31 Registered: February 2012 |
Member |
|
|
Hi,
I am creating Edge/Connectors using this command.
ICommand createSubTopicsCmd = new DeferredCreateConnectionViewAndElementCommand(new CreateConnectionViewAndElementRequest(FlowchartElementTypes.Flowline_4001,
((IHintedType) FlowchartElementTypes.Flowline_4001).getSemanticHint(), PreferencesHint.USE_DEFAULTS), new EObjectAdapter((EObject) prevNode.view),
new EObjectAdapter((EObject) currentNode.view), ((GraphicalEditPart)rootEditPart).getViewer());
To create a Edge it taking almost 3 times more time than the creation of diagram Node.
Even at the time of opening of the GMF diagram also
XXXDiagramCanonicalEditPolicy refreshConnection is taking lot of time.
I am using PolylineConnectionEx as my Connector.
Can some one tell me why Edge/Connectors are taking more time for creation than the diagram nodes and How can we reduce the Loading time related to connector.
Thanks in Advance.
Regards,
Abbas.
|
|
|
Powered by
FUDForum. Page generated in 0.03134 seconds