Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating a link without a reference in the semantic model
Creating a link without a reference in the semantic model [message #193024] Tue, 17 June 2008 09:25 Go to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
Hi all,

I would like to programmaticaly create a link between two nodes on the
diagram (in the notation model). None of the nodes have a reference on
the other in the semantic model, so there is no relation between the
notation and the semantic model.

How can I achieve that?
Re: Creating a link without a reference in the semantic model [message #193563 is a reply to message #193024] Thu, 19 June 2008 09:33 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Youmm P.,

Try creating link mapping without any domain model information specified
- pure-design links are supported in GMF-generated diagrams.

-----------------
Alex Shatalin
Re: Creating a link without a reference in the semantic model [message #193696 is a reply to message #193563] Thu, 19 June 2008 13:33 Go to previous messageGo to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
> Try creating link mapping without any domain model information specified
> - pure-design links are supported in GMF-generated diagrams.
Ok it works fine! Thanks, I think I was looking for something too
complex this time...

For the archive, I did something like that (the source and target edit
part are the same, it was just to test):


CreateConnectionViewRequest connectionViewReq =
CreateViewRequestFactory.getCreateConnectionRequest (
XYZElementTypes.Link_3004,
toplevelEditPart.getDiagramPreferencesHint ());

connectionViewReq.setSourceEditPart (editPart);
connectionViewReq.setTargetEditPart (editPart);

CreateConnectionViewRequest.getCreateCommand (connectionViewReq,
editPart, editPart)


Thanks again.
Re: Creating a link without a reference in the semantic model [message #193785 is a reply to message #193696] Thu, 19 June 2008 15:59 Go to previous message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
It works fine but the link are not saved in the notation model, so when
I opened again the diagram, they are missing. Any ideas? Saving the
links in a Style?
Previous Topic:Questions: GUI designer with GMF
Next Topic:Re: Border Item Rectilinear router
Goto Forum:
  


Current Time: Fri Apr 26 21:55:00 GMT 2024

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

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

Back to the top