View previous topic :: View next topic |
Author |
Message |
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Fri Feb 20, 2004 3:12 pm Post subject: UML Diagramas and CVS - Problem
|
|
|
I have a CVS repository where I save my java files and my diagrams. When I make a commit with, for example, a class diagram and a colleague check it out, he cannot see the classes I created. The model is empty. Any idea why and how can I solve it? am I making something wrong.
Best regards,
Menendez
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Mon Feb 23, 2004 1:44 pm Post subject:
|
|
|
oh, I forgot to give you my program versions:
eclipse 2.1.2
eclipseUML Enterprise 0.8.5
Will be very thankful if somebody can help me,
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Mon Feb 23, 2004 8:00 pm Post subject:
|
|
|
Hi,
Below your project directory you should see a .uml directory.
You need to share the content of this directory.
Otherwise you will experience empty diagrams as you report.
Regards.
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Tue Feb 24, 2004 12:02 pm Post subject:
|
|
|
Thanks Xavier, but I have a little problem now: I don't have an .uml folder in my project. If I create a new java project there is no .uml folder. I have another project (a simple one) and it has a .uml project but because is not a java one I cannot create ULM diagrams. (?????)
I will try again later to delete all my project and take them from CVS. Maybe I am doing something wrong. Suggestions?
Thanks again,
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Tue Feb 24, 2004 9:58 pm Post subject:
|
|
|
Hi,
the .uml directory contains our uml repository.
This directory is initialized when you model something.
Concerning your second point.
Modeling Java classes is recommended in Java Projects.
Otherwise you will experience some strange behaviour.
Regards.
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Wed Feb 25, 2004 12:48 pm Post subject:
|
|
|
Hallo Xavier,
of course, I can understand it is logical from your point of view to allow ULM-Diagrams only in Java Projects, and I thought it is so in eclipse when I saw the error message the first time I tried it in a simple project. But after a couple of tries I could do it. I am not sure if I am able to reproduce it, but I sure you I did it. It is an error in the UML-plugin?
Anyway, my problem now it's much bigger because I deleted everything and I created a new Java project starting from the beginning. I made a new ulm class diagram, created a class, saved it... but there is no .uml folder; .project and .classpath are there, the .ucd, java and class files too, but no .uml. This should be an error in the plugin, I guess. Any idea, except install everything again?
Thanx a lot for your help,
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Wed Feb 25, 2004 1:36 pm Post subject:
|
|
|
Hi,
Here is a sample of what you should see in a Navigator View.
Otherwise, check our FAQ page to verify your Eclipse Installation.
Regards.
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Wed Feb 25, 2004 2:39 pm Post subject:
|
|
|
Sorry, Xavier, but I can not see the attachment. Did you forget it? I send you now mine to show you what I see in the Navigator. As you can see no .uml directory.
I deinstalled everything and installed again (eclipse-SDK-2.1.2-win32.zip and your eclipseUML_enterpriseEdition-installer_0.8.5.20040129.jar). I checked your FAQ and in the Plug-in details, the feature folder and the plugins folder is everything ok, all the plug-ins and folders are there. I created a test java project, a test package and a Test diagram with a class, and the screenshot is the result, no .uml
Maybe would be important to yo to know I am using Windows XP Professional Version 2002 Service Pack 1 in german.
Menendez
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Wed Feb 25, 2004 2:46 pm Post subject: Sorry
|
|
|
ooppsss, Sorry I sent it two times... and I can see your picture now. Well, I still don't see the folder.
Menendez
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Wed Feb 25, 2004 3:07 pm Post subject:
|
|
|
Hey Xavier, just a moment.... as I see in your screenshot you have created a class diagram in a simple project, not a java one. This should not be possible. Look at the error at the superior part of my screenshot when I try to do it.
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Wed Feb 25, 2004 7:33 pm Post subject:
|
|
|
Hi,
I did a mistake.
I assumed you used our EclipseUML Free Edition.
There is no repository in our Entrerprise Edition.
If you want to share your diagrams, you also need to share your java classes.
Our diagrams are bound to them.
Regards.
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Thu Feb 26, 2004 8:19 am Post subject:
|
|
|
Hi Xavier,
yes, I am using your Enterprise Edition by the moment only in Evaluation till I get it to run and see if it is what we need. I supposed that too and I commited the java files but it is still not working.
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Thu Feb 26, 2004 8:29 am Post subject:
|
|
|
Hi,
I see in your test project that you didn't define a src directory in your Java Build Path.
Could you define one ?
Create some packages in that directory ?
Define some classes, either in a Class Diagram or manually ?
Define a Class diagram by reversing the existing classes (if you choose to create the java classes manually)
Save this project under a CVS tree
Create a new project or use another computer and retrieve your CVS tree.
Open your class diagram .
You should see the same diagram.
If not, open a request on our support desk.
Regard.
|
|
Back to top |
|
|
jesusmenendez
Joined: 20 Feb 2004
Posts: 11
|
Posted: Thu Feb 26, 2004 9:41 am Post subject:
|
|
|
Well, the things are not so easy. The project I am working for exists already in a CVS Tree and I take a part of it to create my UML-Diagrams and associated java files and classes in this certain part of the tree. When I take this part of the CVS Tree from the repository as java project I have a defined structure and I am delimited to this structure, so I can not create a "src" folder. But what you have seen was just a test, I am not working at the root of the local tree taken from CVS but in a subfolder (it is not called "src" but it is the same).
The procedure we follow here is:
1. I take the part of the tree from CVS repository as a java project
2. in a subfolder already existent I create the diagrams and the java files
3. I synchronize with the repository again
4. go to the window 'structure compare' and add the new files (ucd and java) to the Version Control
5. Commit them
6. my collegue takes the same part of the tree from CVS repository with the ucd and java files
7. he opens the ucd file and.... nothing
I am doing anything wrong?
Another question: should I commit the .classpath and .project files to CVS? I suppose not because they will be created in my collegues' computer when he makes the checkout of the part of the CVS tree as a java project, and because they are readonly (I think)
Menendez
|
|
Back to top |
|
|
xavier
Site Admin
Joined: 14 Mar 2003
Posts: 81
|
Posted: Thu Feb 26, 2004 3:40 pm Post subject:
|
|
|
Hi,
I understand that you follow the structure of your project on your CVS tree.
I proposed you to do a simple test to figure out the problem.
Under a Java Project you should define a src directory in your Java build path.
Here is a snapshot of a cvs tree from a project in sourceforge.
As you can its structure is quite usual.
You have a src directory who is a good candidate to be put in your java build path and you have a lib directory where most of the time dependant jar are stored.
When you check it out this project you create a java project. As the project is not already downloaded I usually do not define yet my Java Build Path and my libraries.
Once downloaded, right-click on your java project then properties.
Choose Java build Path, define your 'src' directory (it could have another name) and define your jar libraries if applicable.
Please do a simple test with a checkin checkout cycle to verify if such scenario fix the problem.
Regards.
|
|
Back to top |
|
|
|