New to UML2tools & existing Java project [message #476584] |
Thu, 09 July 2009 16:26  |
Eclipse User |
|
|
|
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 #476593 is a reply to message #476591] |
Tue, 14 July 2009 03:54   |
Eclipse User |
|
|
|
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 #495267 is a reply to message #495124] |
Wed, 04 November 2009 07:57  |
Eclipse User |
|
|
|
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 03:38  |
Eclipse User |
|
|
|
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 08:29  |
Eclipse User |
|
|
|
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 #624581 is a reply to message #476591] |
Tue, 14 July 2009 03:42  |
Eclipse User |
|
|
|
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 03:54  |
Eclipse User |
|
|
|
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 15:52  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.08861 seconds