State Diagram reader [message #476965] |
Thu, 21 February 2008 04:21  |
Eclipse User |
|
|
|
Hello
I am very new to UML2 framework. Currently I am working on an application
which needs to read the state diagrams in uml format. It needs to collect
the diagram informations like state id, state name, stereotypes etc. Till
now I was using the modelling tools API for doing so but now i want to do
it by using this UML2 project.
Can anyone give me any reference code or some guidelines how to load the
diagram and then parse it to get the required information of the stae
diagram.
Thanks a lot in advance
Hem
|
|
|
Re: State Diagram reader [message #477010 is a reply to message #476965] |
Fri, 29 February 2008 11:48  |
Eclipse User |
|
|
|
Hi Hem,
If I understand correctly you want to parse a UML model to extract
information about state machines.
Have a look at some of the 'getting started' articles on how to work with
models http://wiki.eclipse.org/MDT-UML2.
There are some convenience methods in UMLUtil that will help you in
extracting certain named elements ( look at UMLUtil.findNamedElement(..).
The uml superstructure specification at omg.org will also help to identify
which meta-types you might be intrested in.
Cheers,
- James.
"hemant" <hemant.kumar.811@gmail.com> wrote in message
news:3c234b3355eebc9ba04f50fb16688e24$1@www.eclipse.org...
> Hello
> I am very new to UML2 framework. Currently I am working on an application
> which needs to read the state diagrams in uml format. It needs to collect
> the diagram informations like state id, state name, stereotypes etc. Till
> now I was using the modelling tools API for doing so but now i want to do
> it by using this UML2 project.
> Can anyone give me any reference code or some guidelines how to load the
> diagram and then parse it to get the required information of the stae
> diagram.
>
> Thanks a lot in advance
> Hem
>
|
|
|
Re: State Diagram reader [message #626114 is a reply to message #476965] |
Fri, 29 February 2008 11:48  |
Eclipse User |
|
|
|
Hi Hem,
If I understand correctly you want to parse a UML model to extract
information about state machines.
Have a look at some of the 'getting started' articles on how to work with
models http://wiki.eclipse.org/MDT-UML2
There are some convenience methods in UMLUtil that will help you in
extracting certain named elements ( look at UMLUtil.findNamedElement(..).
The uml superstructure specification at omg.org will also help to identify
which meta-types you might be intrested in.
Cheers,
- James.
"hemant" <hemant.kumar.811@gmail.com> wrote in message
news:3c234b3355eebc9ba04f50fb16688e24$1@www.eclipse.org...
> Hello
> I am very new to UML2 framework. Currently I am working on an application
> which needs to read the state diagrams in uml format. It needs to collect
> the diagram informations like state id, state name, stereotypes etc. Till
> now I was using the modelling tools API for doing so but now i want to do
> it by using this UML2 project.
> Can anyone give me any reference code or some guidelines how to load the
> diagram and then parse it to get the required information of the stae
> diagram.
>
> Thanks a lot in advance
> Hem
>
|
|
|
Powered by
FUDForum. Page generated in 0.05535 seconds