Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » New to UML2tools & existing Java project
New to UML2tools & existing Java project [message #476584] Thu, 09 July 2009 20:26 Go to next message
Jim Snyder is currently offline Jim SnyderFriend
Messages: 6
Registered: July 2009
Junior Member
Hello,

(environment: Windows XP Pro w/ Galileo)

I've just downloaded the Modeling Framework plugin and began messing
around w/ it:

I have an existing web application project w/ a lot of .java files under a
particular package. I've created a folder called UML under the project and
in there have chosen to create a Class diagram. Per the UML 2.1 Diagrams
wizard I choose Class Diagram & it creates the my_class_diagram.uml and
my_class_diagram.umlclass files. Working w/ the .umlclass I can manually
add Class elements from the Palette and make associations/generalization,
etc just to get myself familiar w/ the uml2tool environment.

I haven't found out how to do the following:

1. Does UML2tools support creating a new .umlclass/.uml file and allow me
to drag and drop existing .java files into the .umlclass's tab to start
creating the Class diagram?

2. Similarly, how does one associate (create) a sequence diagram given the
existing package and its .java files?

I've found a couple of tutorials about creating the Class diagrams but
none that explain the above issues that I'm having.

Thanks, Jim
Re: New to UML2tools & existing Java project [message #476585 is a reply to message #476584] Fri, 10 July 2009 07:38 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Jim,

You talk about reverse engineering right? you should look for at modisco
project in gmt modeling subproject http://eclipse.org/gmt/modisco/ .
UML2Tools project's goals is only to provide graphical syntax to UML2
standard with GMF.

Jim Snyder a écrit :
> Hello,
>
> (environment: Windows XP Pro w/ Galileo)
>
> I've just downloaded the Modeling Framework plugin and began messing
> around w/ it:
>
> I have an existing web application project w/ a lot of .java files under
> a particular package. I've created a folder called UML under the project
> and in there have chosen to create a Class diagram. Per the UML 2.1
> Diagrams wizard I choose Class Diagram & it creates the
> my_class_diagram.uml and my_class_diagram.umlclass files. Working w/ the
> .umlclass I can manually add Class elements from the Palette and make
> associations/generalization, etc just to get myself familiar w/ the
> uml2tool environment.
> I haven't found out how to do the following:
>
> 1. Does UML2tools support creating a new .umlclass/.uml file and allow
> me to drag and drop existing .java files into the .umlclass's tab to
> start creating the Class diagram?
>
> 2. Similarly, how does one associate (create) a sequence diagram given
> the existing package and its .java files?
>
> I've found a couple of tutorials about creating the Class diagrams but
> none that explain the above issues that I'm having.
>
> Thanks, Jim
>
>
Re: New to UML2tools & existing Java project [message #476587 is a reply to message #476585] Mon, 13 July 2009 12:29 Go to previous messageGo to next message
Jim Snyder is currently offline Jim SnyderFriend
Messages: 6
Registered: July 2009
Junior Member
Hello Esteban,

Thanks for the reply.

Before I start using it I need to ask a couple of questions:

1. When it comes to doing a class diagram, is MoDisco a drag-drop
interface? I ask as I want to only include a subset of the .java files
that are actually in my application.

2. Are sequence diagrams supported from the class diagrams?

3. Is this a static tool? What I mean is: today I have class Person with 2
data members (firstname, lastname). And then I create (reverse engineer)
my class diagram. Tomorrow I add a 3rd data member (age). Does the class
diagram automatically update with the additional data member. I'm not
concerned about what might happen to the layout of the class diagram.

Thanks...Jim
Re: New to UML2tools & existing Java project [message #476589 is a reply to message #476587] Mon, 13 July 2009 13:25 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
There isn't tool like that in Eclipse today, but some commercial tool do
almost what you want. Look at the following demo :
http://obeo.fr/videos/agility-runtime-psm-modules/agility-ru ntime-psm-modules-cpp-psm-uml-java.htm
Re: New to UML2tools & existing Java project [message #476591 is a reply to message #476589] Mon, 13 July 2009 14:04 Go to previous messageGo to next message
Jim Snyder is currently offline Jim SnyderFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks for the info Esteban

Jim
Re: New to UML2tools & existing Java project [message #476592 is a reply to message #476591] Tue, 14 July 2009 07:42 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Folks,

I think that there are three different ways to consider:
- The model driven solution is a model that generate code for you after a
transformation stage.
You can use:
1. AndroMDA, BlueAge or other which will generate code from an XMI based
on the UML Superstructure.
2. EMF technology with Obeo, OpenArchitectware etc... which will generate
code from an EMF model.
- The live code and model synchronization is a concept in which if you
change your UML class diagram then you code is automatically updated.
3. You can use commercial tools such as Borland, RSA 7.5, Soyatec or
Omondo. I personnaly think that except Omondo no other tool have a real
perfect integration. The main problem is that other tools had EMF tags in
the java code and don't use the UML Superstructure as the live
synchronization. This is therefore messy and not really usable in a
professional project.

My vision and what is not available as a standard in all tools is that
modern modeling should be a mix of EMF, UML Superstructure, live or none
live synchronization. You should be able to:
- make a clear differentiation between what is a pure UML class or mix
Java+UML class inside the same diagram.
- reuse the same element in as many diagrams as needed. I mean that each
element is displayed depending on the view but all these views keep an
internal mechanism and logic.
- keep the same UML Id for the entire project life in order to keep
traceability and add rules.

The main problem is that today that modeling try to drive Java development
and not be part of an agile methodology in which many other technologies
are involved a
Re: New to UML2tools & existing Java project [message #476593 is a reply to message #476591] Tue, 14 July 2009 07:54 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Folks,

I think that there are three different ways to consider:
- The model driven solution is a model that generate code for you after a
transformation stage.
You can use:
1. AndroMDA, BlueAge or other which will generate code from an XMI based
on the UML Superstructure.
2. EMF technology with Obeo, OpenArchitectware etc... which will generate
code from an EMF model.
- The live code and model synchronization is a concept in which if you
change your UML class diagram then you code is automatically updated.
3. You can use commercial tools such as Borland, RSA 7.5, Soyatec or
Omondo. I personnaly think that except Omondo no other tool have a real
perfect integration. The main problem is that other tools had EMF tags in
the java code and don't use the UML Superstructure as the live
synchronization. This is therefore messy and not really usable in a
professional project.

My vision and what is not available as a standard in all tools is that
modern modeling should be a mix of EMF, UML Superstructure, live or none
live synchronization. You should also be able to:
- make a clear differentiation between what is a pure UML class or mix
Java+UML class inside the same diagram.
- reuse the same element in as many diagrams as needed. I mean that each
element is displayed depending on the view but all these views keep an
internal mechanism and logic.
- keep the same UML Id for the entire project life in order to keep
traceability and add rules.

The main problem today is that modeling try to drive Java development and
not be part of an agile methodology in which many other technologies are
involved and in which modeling is just a component. For example how to use
Maven and in live integration with traditional modeling ?

I think there is no magic bullet but if you use EclipseUML then you are
sure to able to find all the previously described features in a single
tool and available immediately. If you use EMF, Eclipse Modeling tools or
others then you will also be able to do the job but you will not cover all
modeling cycle and have a java integration.

Vlad,
Omondo
Re: New to UML2tools & existing Java project [message #495124 is a reply to message #476593] Tue, 03 November 2009 20:52 Go to previous messageGo to next message
Allen  is currently offline Allen Friend
Messages: 2
Registered: November 2009
Junior Member
So, the part of the original question I am interested in is this... Can you "place" (drag, drop or otherwise put) an existing class definition in the model (.uml file) onto a class diagram (the .di2 file). I already have a robust set of classes defined as well as relationships and now I want to create a couple of different diagrams and I see no way to put the classes on a new diagram. What am I missing here?
Re: New to UML2tools & existing Java project [message #495267 is a reply to message #495124] Wed, 04 November 2009 12:57 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I have written a documentation on this subject for Omondo. See more at..
Drag and drop classifiers into the class diagram to visualize them and click on the diagram background in order to open the class contextual menu to display connectors (e.g. association, dependency, inheritance ) between classifiers.

Sorry the tool is not free but you have 30 days evaluation which is plenty of time left to create as many views as need from your project.
This tool will not also add tags in your java code which remains pure because all model information is saved in the UML model and not as tag in the code

Hope it helps

Vlad,
Re: New to UML2tools & existing Java project [message #624570 is a reply to message #476584] Fri, 10 July 2009 07:38 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Jim,

You talk about reverse engineering right? you should look for at modisco
project in gmt modeling subproject http://eclipse.org/gmt/modisco/ .
UML2Tools project's goals is only to provide graphical syntax to UML2
standard with GMF.

Jim Snyder a écrit :
> Hello,
>
> (environment: Windows XP Pro w/ Galileo)
>
> I've just downloaded the Modeling Framework plugin and began messing
> around w/ it:
>
> I have an existing web application project w/ a lot of .java files under
> a particular package. I've created a folder called UML under the project
> and in there have chosen to create a Class diagram. Per the UML 2.1
> Diagrams wizard I choose Class Diagram & it creates the
> my_class_diagram.uml and my_class_diagram.umlclass files. Working w/ the
> .umlclass I can manually add Class elements from the Palette and make
> associations/generalization, etc just to get myself familiar w/ the
> uml2tool environment.
> I haven't found out how to do the following:
>
> 1. Does UML2tools support creating a new .umlclass/.uml file and allow
> me to drag and drop existing .java files into the .umlclass's tab to
> start creating the Class diagram?
>
> 2. Similarly, how does one associate (create) a sequence diagram given
> the existing package and its .java files?
>
> I've found a couple of tutorials about creating the Class diagrams but
> none that explain the above issues that I'm having.
>
> Thanks, Jim
>
>
Re: New to UML2tools & existing Java project [message #624572 is a reply to message #476585] Mon, 13 July 2009 12:29 Go to previous message
Jim Snyder is currently offline Jim SnyderFriend
Messages: 6
Registered: July 2009
Junior Member
Hello Esteban,

Thanks for the reply.

Before I start using it I need to ask a couple of questions:

1. When it comes to doing a class diagram, is MoDisco a drag-drop
interface? I ask as I want to only include a subset of the .java files
that are actually in my application.

2. Are sequence diagrams supported from the class diagrams?

3. Is this a static tool? What I mean is: today I have class Person with 2
data members (firstname, lastname). And then I create (reverse engineer)
my class diagram. Tomorrow I add a 3rd data member (age). Does the class
diagram automatically update with the additional data member. I'm not
concerned about what might happen to the layout of the class diagram.

Thanks...Jim
Re: New to UML2tools & existing Java project [message #624577 is a reply to message #476587] Mon, 13 July 2009 13:25 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
There isn't tool like that in Eclipse today, but some commercial tool do
almost what you want. Look at the following demo :
http://obeo.fr/videos/agility-runtime-psm-modules/agility-ru ntime-psm-modules-cpp-psm-uml-java.htm
Re: New to UML2tools & existing Java project [message #624580 is a reply to message #476589] Mon, 13 July 2009 14:04 Go to previous message
Jim Snyder is currently offline Jim SnyderFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks for the info Esteban

Jim
Re: New to UML2tools & existing Java project [message #624581 is a reply to message #476591] Tue, 14 July 2009 07:42 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Folks,

I think that there are three different ways to consider:
- The model driven solution is a model that generate code for you after a
transformation stage.
You can use:
1. AndroMDA, BlueAge or other which will generate code from an XMI based
on the UML Superstructure.
2. EMF technology with Obeo, OpenArchitectware etc... which will generate
code from an EMF model.
- The live code and model synchronization is a concept in which if you
change your UML class diagram then you code is automatically updated.
3. You can use commercial tools such as Borland, RSA 7.5, Soyatec or
Omondo. I personnaly think that except Omondo no other tool have a real
perfect integration. The main problem is that other tools had EMF tags in
the java code and don't use the UML Superstructure as the live
synchronization. This is therefore messy and not really usable in a
professional project.

My vision and what is not available as a standard in all tools is that
modern modeling should be a mix of EMF, UML Superstructure, live or none
live synchronization. You should be able to:
- make a clear differentiation between what is a pure UML class or mix
Java+UML class inside the same diagram.
- reuse the same element in as many diagrams as needed. I mean that each
element is displayed depending on the view but all these views keep an
internal mechanism and logic.
- keep the same UML Id for the entire project life in order to keep
traceability and add rules.

The main problem is that today that modeling try to drive Java development
and not be part of an agile methodology in which many other technologies
are involved a
Re: New to UML2tools & existing Java project [message #624583 is a reply to message #476591] Tue, 14 July 2009 07:54 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Folks,

I think that there are three different ways to consider:
- The model driven solution is a model that generate code for you after a
transformation stage.
You can use:
1. AndroMDA, BlueAge or other which will generate code from an XMI based
on the UML Superstructure.
2. EMF technology with Obeo, OpenArchitectware etc... which will generate
code from an EMF model.
- The live code and model synchronization is a concept in which if you
change your UML class diagram then you code is automatically updated.
3. You can use commercial tools such as Borland, RSA 7.5, Soyatec or
Omondo. I personnaly think that except Omondo no other tool have a real
perfect integration. The main problem is that other tools had EMF tags in
the java code and don't use the UML Superstructure as the live
synchronization. This is therefore messy and not really usable in a
professional project.

My vision and what is not available as a standard in all tools is that
modern modeling should be a mix of EMF, UML Superstructure, live or none
live synchronization. You should also be able to:
- make a clear differentiation between what is a pure UML class or mix
Java+UML class inside the same diagram.
- reuse the same element in as many diagrams as needed. I mean that each
element is displayed depending on the view but all these views keep an
internal mechanism and logic.
- keep the same UML Id for the entire project life in order to keep
traceability and add rules.

The main problem today is that modeling try to drive Java development and
not be part of an agile methodology in which many other technologies are
involved and in which modeling is just a component. For example how to use
Maven and in live integration with traditional modeling ?

I think there is no magic bullet but if you use EclipseUML then you are
sure to able to find all the previously described features in a single
tool and available immediately. If you use EMF, Eclipse Modeling tools or
others then you will also be able to do the job but you will not cover all
modeling cycle and have a java integration.

Vlad,
Omondo
Re: New to UML2tools & existing Java project [message #625138 is a reply to message #476593] Tue, 03 November 2009 20:52 Go to previous message
Allen  is currently offline Allen Friend
Messages: 2
Registered: November 2009
Junior Member
So, the part of the original question I am interested in is this... Can you "place" (drag, drop or otherwise put) an existing class definition in the model (.uml file) onto a class diagram (the .di2 file). I already have a robust set of classes defined as well as relationships and now I want to create a couple of different diagrams and I see no way to put the classes on a new diagram. What am I missing here?
Re: New to UML2tools & existing Java project [message #625140 is a reply to message #495124] Wed, 04 November 2009 12:57 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I have written a documentation on this subject for Omondo. http://www.forum-omondo.com/documentation_eclipseuml_2008/qu ickstar_of_EclipseUML/index.html#3._How_to_reverse_a_Java_co de_into_a
Drag and drop classifiers into the class diagram to visualize them and click on the diagram background in order to open the class contextual menu to display connectors (e.g. association, dependency, inheritance ) between classifiers.

Sorry the tool is not free but you have 30 days evaluation which is plenty of time left to create as many views as need from your project.
This tool will not also add tags in your java code which remains pure because all model information is saved in the UML model andhttp://www.forum-omondo.com/viewtopic.php?f=35&t=4166

Hope it helps

Vlad,
Previous Topic:Problem adding event/trigger description to state machine transition
Next Topic:How to add several use-case diagrams to one model file?
Goto Forum:
  


Current Time: Thu Mar 28 17:14:59 GMT 2024

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

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

Back to the top