Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » ConnectionReqest question
ConnectionReqest question [message #155137] Fri, 12 October 2007 11:36
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

In the GMF tutorial a link and Topic is created with an Action. I know
now how to "grab" the Topic. But how can I grab the link object?

Regards,

Tomas


How to grab Topic:

View view = (View) topicViewAdapter.getAdapter(View.class);
Topic element = (Topic) view.getElement();


From the GMF tutorial:

ICommand createSubTopicsCmd = new
DeferredCreateConnectionViewAndElementCommand (new
CreateConnectionViewAndElementRequest(MindmapElementTypes.To picSubtopics_4001,
((IHintedType)
MindmapElementTypes.TopicSubtopics_4001).getSemanticHint(),
selectedElement.getDiagramPreferencesHint()), new
EObjectAdapter((EObject) selectedElement.getModel()), topicViewAdapter,
selectedElement.getViewer());
Previous Topic:How to disable dirty flag when editor is opening
Next Topic:sequencing
Goto Forum:
  


Current Time: Fri Jul 18 17:08:26 EDT 2025

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

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

Back to the top