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

Synchronization between UML class and Java Source Code

 
       forum-omondo.com Forum Index -> UML Discussion
View previous topic :: View next topic  
Author Message
rehrhardt



Joined: 27 Aug 2003
Posts: 2

Posted: Wed Aug 27, 2003 10:22 pm    Post subject: Synchronization between UML class and Java Source Code

I created a class in the UML Class editor and then added an attribute in the java code editor. Is the UML class supposed to reflect the change? I have Eclipse Version: 2.1.1 Build id: and the Eclipse UML plugin 1.2.1 ( I installed useing eclipseuml-installer_1.2.1.20030806.jar).
Back to top
 
varnica
Site Admin


Joined: 14 Mar 2003
Posts: 109

Posted: Thu Aug 28, 2003 7:05 am    Post subject: Live Syncrhonisation

No, it is not supposed to change the UML editor. Crying or Very sad
If you create a class or an attribute using the UML editor, then any change will be automaticly synchronized.
If you want to start with a complete and clean UML and Java Editor, then refactor your code and work on the existing diagram using the UML Editor .

This could seem strange behavior, but limiting this functions was very helpful to keep a user friendly tool and was not an absolute obligation.
Back to top
rehrhardt



Joined: 27 Aug 2003
Posts: 2

Posted: Thu Aug 28, 2003 2:47 pm    Post subject:

Thanks for the quick response. I was wondering because the documentation says:

Real-Time Synchronization
In this section, you will understand why the real-time synchronization between Eclipse and the EclipseUML plugin will have a real impact on your programming performances.

The EclipseUML plugin is fully integrated into the IBM IDE technology (Eclipse). Implemented with the Eclipse Open API, EclipseUML plugin becomes a seamless integrated composant in your IDE. This complete integration makes the UML plugin is totally linked to the Eclipse repository. You can modify your code either from the java editor or through the UML view, both are always totally synchronized.
Back to top
 
jayganesh786



Joined: 23 Sep 2003
Posts: 14

Posted: Wed Oct 01, 2003 9:31 am    Post subject:

Hello guys,

This is sometimes known as round tripping. I mean when you update UML class diagram, it should update java code and vice versa. In fact I have found it working, but sometimes when I add method to java code it failes to add method into uml class. Also when I uncheck protected method box from preferences, uml diagram does not remove protected methods. Is this a bug? I don't know, but I think it is frustrating sometimes that uml diagram does nto reflect to java code or preferences table.

Please comment and try yourself.

Thanks

Nilesh Patel.
Back to top
 
varnica
Site Admin


Joined: 14 Mar 2003
Posts: 109

Posted: Sat Oct 18, 2003 9:55 am    Post subject: View selector

Hello Nilesh,

Did you find our View selector function?
Right click on an Element and open popup menu > view selector and select which method you want to see inside your diagram.

Omondo
Back to top
jayganesh786



Joined: 23 Sep 2003
Posts: 14

Posted: Fri Nov 07, 2003 1:23 pm    Post subject:

that seems to be working. Although I was expecting automatic round tripping, but al teast there is a way to show methods in a diagram.

Thanks.
Back to top
 
julien
Site Admin


Joined: 16 Mar 2003
Posts: 157

Posted: Sat Nov 22, 2003 12:45 pm    Post subject: Re: Synchronization between UML class and Java Source Code

rehrhardt wrote:
I created a class in the UML Class editor and then added an attribute in the java code editor. Is the UML class supposed to reflect the change? I have Eclipse Version: 2.1.1 Build id: and the Eclipse UML plugin 1.2.1 ( I installed useing eclipseuml-installer_1.2.1.20030806.jar).


EclipseUML does support the real-time synchronization between UML diagram and Java code. We support also the model view concept. When you change the Java code, UML does capture the change (if can verify in the uml repository). But it may or may not reflect in your diagram it depnds on your view options. If you show only public member and you add a public member, your diagram should be upadted immediately. But if you add a protected or private memeber, your diagram will not be updated.

julien
Back to top
Display posts from previous:   
       forum-omondo.com Forum Index -> UML Discussion 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