Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Converting UML diagrams by simple java code parsing methods
Converting UML diagrams by simple java code parsing methods [message #839840] Mon, 09 April 2012 09:20 Go to next message
Fares Behr is currently offline Fares BehrFriend
Messages: 1
Registered: April 2012
Junior Member
Hi,
I'm a noob please show some mercy lol
I've looked long for a UML editor until I stumbled across Eclipse UML tools...

my objective: take a UML diagram, convert it into another diagram by running a java class with specific rules.

this is what I did:

1. Draw (drag and drop) a UML diagram using the Eclipse UML2 editor.
2. Create a java class with parsing methods that apply specific changes to the diagram by altering attribute values of the xml tags

this is where I'm stuck Embarrassed :

3. showing the target drawings: the xy coordinates of the target UMLs are so messy.

I need to understand how Eclipse treats the xy of all shapes placed on the grid.
Is each shape xy located on the northwest corner?
How come there are negative values for the xy?
Is there a way I can see the xy locations when moving the cursor over the drawing?

The resulting drawing is an xml created from scratch, and of course the drawing depends on the input so I can't actually create a template and edit it.

Many thanks in advance!

Re: Converting UML diagrams by simple java code parsing methods [message #839953 is a reply to message #839840] Mon, 09 April 2012 13:21 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

The UML diagrams are built using the Eclipse Graphical Modeling Framework:

http://www.eclipse.org/gmf/

That project defines the graphical notation, including the coordinate
system within the diagram surface and within shapes on the diagram.
There should be documentation on the GMF website, and/or the wiki,
describing how it works.

HTH,

Christian


On 2012-04-09 09:20:58 +0000, Fares Behr said:

> Hi,
> I'm a noob please show some mercy lol
> I've looked long for a UML editor until I stumbled across Eclipse UML tools...
>
> my objective: take a UML diagram, convert it into another diagram by
> running a java class with specific rules.
>
> this is what I did:
>
> 1. Draw (drag and drop) a UML diagram using the Eclipse UML2 editor.
> 2. Create a java class with parsing methods that apply specific changes
> to the diagram by altering attribute values of the xml tags
>
> this is where I'm stuck :blush: :
>
> 3. showing the target drawings: the xy coordinates of the target UMLs
> are so messy.
>
> I need to understand how Eclipse treats the xy of all shapes placed on
> the grid.
> Is each shape xy located on the northwest corner?
> How come there are negative values for the xy?
> Is there a way I can see the xy locations when moving the cursor over
> the drawing?
>
> The resulting drawing is an xml created from scratch, and of course the
> drawing depends on the input so I can't actually create a template and
> edit it.
>
> Many thanks in advance!
Previous Topic:Convert Java Source Code to XMI via UML2
Next Topic:Problem with the "registration" of an UML2 profile
Goto Forum:
  


Current Time: Thu Apr 25 23:31:02 GMT 2024

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

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

Back to the top