Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to fetch the Semantic model file for a given Notational model file
How to fetch the Semantic model file for a given Notational model file [message #160550] Thu, 15 November 2007 02:57 Go to next message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi All,


How can we get the Semantic model file for a given Notational
model file(digram).

Thanks for any Ideas.. :) Biju
Re: How to fetch the Semantic model file for a given Notational model file [message #160687 is a reply to message #160550] Thu, 15 November 2007 09:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi biju,

You should load it into a resourceset, assume that
resource.getContents().get(0) instanceof Diagram and, if so,
use
org.eclipse.emf.workspace.util.WorkspaceSynchronizer.getFile (diagram.getElement().eResource())


(or, in the RCP case, diagram.getElement().eResource().getURI()).

Best regards,
Boris


biju wrote:
> Hi All,
>
>
> How can we get the Semantic model file for a given Notational
> model file(digram).
>
> Thanks for any Ideas.. :) Biju
Re: How to fetch the Semantic model file for a given Notational model file [message #160911 is a reply to message #160687] Fri, 16 November 2007 08:18 Go to previous message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

Hi Boris Blajer,

Thanks for the help, I will try it
;) Biju

Boris Blajer wrote:
> Hi biju,
>
> You should load it into a resourceset, assume that
> resource.getContents().get(0) instanceof Diagram and, if so,
> use
> org.eclipse.emf.workspace.util.WorkspaceSynchronizer.getFile (diagram.getElement().eResource())
>
>
> (or, in the RCP case, diagram.getElement().eResource().getURI()).
>
> Best regards,
> Boris
>
>
> biju wrote:
>> Hi All,
>>
>>
>> How can we get the Semantic model file for a given Notational
>> model file(digram).
>>
>> Thanks for any Ideas.. :) Biju
Previous Topic:RotatableShapeEditPolicy with Polygon
Next Topic:Canvas/DiagramEditor class generation question
Goto Forum:
  


Current Time: Sun May 11 19:19:40 EDT 2025

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

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

Back to the top