Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Extarcting activity model and state machine information
Extarcting activity model and state machine information [message #416786] Tue, 19 February 2008 10:39 Go to next message
Eclipse UserFriend
Originally posted by: hemant.kumar.811.gmail.com

Hello
I am working on a application in which i am supposed to extract the model
information of various state machines and activity models designed in
various UML Tool like eclipse UML, Topcased etc.
Till now i ws using the specific API of the various Modeling tool
separately but as i am using only EMF based modelling tool, so i think
this model information can be get by using EMF features also which can be
used commonly for all the modelling tools i m using either through XMI or
ecore.
Can anyone guide me how can i do this and if possible, kindly send me the
exaple java code for accessing a particular uml model or ecore model for
refernce.
Thank You
Hemant Kumar
Re: Extarcting activity model and state machine information [message #416796 is a reply to message #416786] Tue, 19 February 2008 14:52 Go to previous messageGo to next message
Marcelo Paternostro is currently offline Marcelo PaternostroFriend
Messages: 602
Registered: July 2009
Senior Member
Hi Hemant,

If everything is EMF based, you would need to load the resource that
contains the the model from which you want to extract the information
and use EMF reflection to do the work.

The specific knowledge you will need in order to work with the different
tools is where their EMF metadata is and what are the names of the
EClasses and features you are interested.

We have several documents on our documentation page
(http://www.eclipse.org/modeling/emf/docs/) that show how to do this.
The following tutorial is a good example. It show how to load files and
also has a few code snippets that show how to use reflection in EMF
(page 69, for example):
http://www.eclipse.org/modeling/emf/docs/presentations/OOPSL A/OOPSLA_2006_T38_Intro_To_EMF.pdf


Hemant wrote:
> Hello
> I am working on a application in which i am supposed to extract the
> model information of various state machines and activity models designed
> in various UML Tool like eclipse UML, Topcased etc.
> Till now i ws using the specific API of the various Modeling tool
> separately but as i am using only EMF based modelling tool, so i think
> this model information can be get by using EMF features also which can
> be used commonly for all the modelling tools i m using either through
> XMI or ecore.
> Can anyone guide me how can i do this and if possible, kindly send me
> the exaple java code for accessing a particular uml model or ecore model
> for refernce.
> Thank You
> Hemant Kumar
>
Re: Extarcting activity model and state machine information [message #416888 is a reply to message #416796] Tue, 19 February 2008 16:47 Go to previous message
hemant is currently offline hemantFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks a lot Marcelo..
I am trying to go in that way. Hope it will work.
Thanks once again.
Previous Topic:Searching for references in the .ecore editor
Next Topic:new jmerger and annotations?
Goto Forum:
  


Current Time: Fri Apr 26 03:09:48 GMT 2024

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

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

Back to the top