Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Reuse of created GMF diagrams
Reuse of created GMF diagrams [message #169202] Tue, 22 January 2008 04:49 Go to next message
BG is currently offline BGFriend
Messages: 45
Registered: July 2009
Member
Hello all,

I have requirement to load existing diagram into GMF editor while creating
new diagram which is some what similar to ecore diagram creation where we
have option to "load resource".So that i can reuse the existing diagram
components.Can i known what is the best way to achive it ?.Is there any
GMF examples avilable with this feature ?

Regards
Byre
Re: Reuse of created GMF diagrams [message #169226 is a reply to message #169202] Tue, 22 January 2008 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

BG wrote:
> Hello all,
>
> I have requirement to load existing diagram into GMF editor while
> creating new diagram which is some what similar to ecore diagram
> creation where we have option to "load resource".So that i can reuse the
> existing diagram components.Can i known what is the best way to achive
> it ?.Is there any
> GMF examples avilable with this feature ?
>

If I understand you correctly, you want to be able to load a diagram
resource into an existing diagram? This comes built in in GMF and is
similar to the behavior you get in an EMF generated editor. I don't know
of any example of this, but I don't think you really need one. Just
initialize to editors (of same or different type) that contain objects
that can relate to each other. Load Resource. Now you can create
relations across diagrams.


HTH,

Tomas Zijdemans
Re: Reuse of created GMF diagrams [message #169345 is a reply to message #169202] Tue, 22 January 2008 19:18 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello BG,

If you are talking about visualizing on the diagram existing model elements
stored in another model file (and represented on another diagram) then try
"shortcutting" functionality: ( http://wiki.eclipse.org/index.php/GMF_GenModel_Hints#GenDiag ram,
http://www.eclipse.org/gmf/new/gmf-new-1.0.php)

-----------------
Alex Shatalin
Previous Topic:EMF still alive
Next Topic:Show B in A with AssociationClass A<--> B?
Goto Forum:
  


Current Time: Thu Apr 25 05:55:32 GMT 2024

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

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

Back to the top