Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07: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 14:35 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
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 13: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: Sat Apr 27 03:05:44 GMT 2024

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

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

Back to the top