Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Loading models in GMF
Loading models in GMF [message #119400] Mon, 16 April 2007 08:34 Go to next message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

Hey folks,

can somebody tell me where GMF loads the EMF model? I want to modify the
generated editor
in such a way, that it is able to show diagrams dynamically from a emf model
which is allready in memory.
The thing is, that I don't want a file which holds the model information and
a file holding the visual information
(like it is now). It would be great if I just can say: "Here's the modell,
show it in diagram mode".

Thanks in advance,
Andreas
Re: Loading models in GMF [message #119518 is a reply to message #119400] Mon, 16 April 2007 11:23 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

I think, the best solution is to implement Resource.Factory interface "loading"
EMF instnces from memory, register this factory in EMF and then Create URIEditorInput
with corresponding URI and pass it to GMF. I think this should work..

Otherwise you should change a lot in the generated code.. Generated ???DocumentProvider
responsible for loading EMF instances from the inoput object.


-----------------
Alex Shatalin
Re: Loading models in GMF [message #119543 is a reply to message #119518] Mon, 16 April 2007 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

Hi Alex,

sounds great - I think I have to take a closer look at that interface and
the
other classes you told me to. Do you know where to find more information on
how to register my factory?

Greetings,
Andreas

"Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
news:3c3172e6128bf8c94e417e39e685@news.eclipse.org...
> Hello Andreas,
>
> I think, the best solution is to implement Resource.Factory interface
> "loading" EMF instnces from memory, register this factory in EMF and then
> Create URIEditorInput with corresponding URI and pass it to GMF. I think
> this should work..
>
> Otherwise you should change a lot in the generated code.. Generated
> ???DocumentProvider responsible for loading EMF instances from the inoput
> object.
>
>
> -----------------
> Alex Shatalin
>
>
Re: Loading models in GMF [message #119593 is a reply to message #119543] Mon, 16 April 2007 12:39 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andreas,

> other classes you told me to. Do you know where to find more
> information on
> how to register my factory?

In EMF documentation or code.. You have to use following extension point
to register your factory: org.eclipse.emf.ecore.extension_parser

-----------------
Alex Shatalin
Re: Loading models in GMF [message #119808 is a reply to message #119593] Mon, 16 April 2007 17:47 Go to previous message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

Hey Alex,

thx a lot. I think I'll try it and ask you if it doesn't work ;)

Bye,
Andreas

"Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
news:3c3172e6128c88c94e4c1e23e58d@news.eclipse.org...
> Hello Andreas,
>
>> other classes you told me to. Do you know where to find more
>> information on
>> how to register my factory?
>
> In EMF documentation or code.. You have to use following extension point
> to register your factory: org.eclipse.emf.ecore.extension_parser
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Problem while modifying resource.
Next Topic:GMF(Callisto) 1.0.3: org.eclipse.emf.validation.ocl requires "org.eclipse.ocl.ecore" ????
Goto Forum:
  


Current Time: Sun Oct 06 08:29:09 GMT 2024

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

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

Back to the top