Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creation Problem with connector of PolylineConnectionEx type(Creation Problem with connector of PolylineConnectionEx type)
Creation Problem with connector of PolylineConnectionEx type [message #892741] Fri, 29 June 2012 12:57
Abbas Mohd is currently offline Abbas MohdFriend
Messages: 31
Registered: February 2012

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.

Previous Topic:Moving GMF-independent code to GEF?
Next Topic:Get EditPart in the NavigatorActionProvider
Goto Forum:

Current Time: Thu Oct 29 11:57:37 GMT 2020

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

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

Back to the top