FAQ   Search   Memberlist   Usergroups   Statistics   Register 
 Profile   Log in to check your private messages   Log in 

How do I reverse engineer a Class Diagram?

 
       forum-omondo.com Forum Index -> Eclipse Support
View previous topic :: View next topic  
Author Message
kjne8o



Joined: 31 Mar 2003
Posts: 1
Location: Ohio

Posted: Mon Mar 31, 2003 6:46 pm    Post subject: How do I reverse engineer a Class Diagram?

I have the code - I need a class diagram that shows all public and private attributes. How do I do this??????
_________________
Kris
Back to top
xavier
Site Admin


Joined: 14 Mar 2003
Posts: 76

Posted: Tue Apr 01, 2003 7:44 am    Post subject:

Hi,

Prerequisite :

I assume that you have a project directory.
We can call it ${project}.
Below this directory you should have a src directory.
This src directory contains your classes.
I hope that your classes are packaged.
It means that below your src directory your have some directories who contains your existing code.

Start Eclipse :

Create a Java Project.
Import your project into your workspace through File->Import->File System.

Select your project name from the Package Explorer.
Right-Click->Properties->Java Build Path->Source
Select your src directory.

As an option solve your external jar files if necessary.

Eclipse will create a bin directory.

From the package explorer select the package where you want to create an UML Class Diagram.
Righ-Click->UML->Class Diagram Editor.

EclipseUML Starts and display an Object selector.

You should have successfully created a reverse engineered class diagram.

Regards.
Back to top
acpoupard



Joined: 08 Apr 2003
Posts: 1

Posted: Tue Apr 08, 2003 11:44 am    Post subject:

Hello Xavier i followed your instruction thanks

but i failed at this step:
"Select your project name from the Package Explorer. "

do i have to select the projetct i want to reverse OR the project where the reverse will take place ?

i tried both and both failed

thanks in advance,

A java-guy in trouble ...
Back to top
 
xavier
Site Admin


Joined: 14 Mar 2003
Posts: 76

Posted: Tue Apr 08, 2003 1:04 pm    Post subject:

Hi,

You should select the new project you create.

Do not forget these important steps.

You create a new project in Eclipse where you import some java code from your file system.

In my use case you should have only one project.

Hope it helps.
Back to top
davisford



Joined: 08 Feb 2004
Posts: 3

Posted: Sun Feb 08, 2004 3:41 pm    Post subject:

Hi, I'm having a similar problem.

The following steps indicate what I am trying:

1) Create new Java project
2) Create new package
3) Import source code into project and package
4) Source code compiles fine, etc....
5) Choose New->UML-Class Diagram
6) a box pops up with "Package Content Selection"
7) Choose all the classes I want to be in the diagram by checking the boxes
Press OK, the diagram is empty. If I try to drag a class from the Navigator view into the diagram nothing happens.

If I try to create a new class from the class diagram editor and give it the same name, it claims that it already exists.

Why is it not showing up?

Eclipse Platform

Version: 2.1.2
Build id: 0802

Eclipse UML Plugin

Version: 1.2.1
Build id:
Back to top
 
Demian



Joined: 06 Feb 2004
Posts: 3

Posted: Mon Feb 09, 2004 2:28 pm    Post subject:

It works fine with me.

When I select a package of a working project - and choose "Create UML Diagram" - a dialog is shown, in which I can choose which classes I want to model - and it works.....
Back to top
 
julien
Site Admin


Joined: 16 Mar 2003
Posts: 164

Posted: Fri Feb 13, 2004 9:11 am    Post subject:

We have received a testcase. This is a bug of the JDT. It depends the code stucture. We found a workaround. We will publish it next week.

julien
omondo
Back to top
Display posts from previous:   
       forum-omondo.com Forum Index -> Eclipse Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group