facebook

Goto class definition from Class Diagram

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #267426 Reply

    How to get to java editor with the definition of class when designing Class Diagram?
    MyEclipse 5.1 and 5.5

    #267463 Reply

    Riyad Kalla
    Member

    There is no implicit link to the source files from the diagram because having a UML class diagram doesn’t necessarily guarantee a Java source file exists. This only occurs when you generate Java from your UML diagram.

    #267501 Reply

    I played a few with reverse engineering and code generation.
    After I generated java class I put some code in methods and added extra method and then reverse engineered diagram. A new one appeared. It wasn’t that I expected.
    Then I added a new method to the class in the diagram and generated code. All my comments and code was overwritten.
    Yep, I see, there is no connection between diagram and source code.

    But I really need to keep diagrams and source in sync during several iterations in the product development lifecycle. Once source code was generated the diagrams becomes useless. Realizing that I’m going to make conclusion that even initial design becomes useless.

    I’d suggest considering the capability of keeping diagrams and source code in sync. At least code generation shouldn’t corrupt my source code. And vice-versa.

    #267514 Reply

    Riyad Kalla
    Member

    I’d suggest considering the capability of keeping diagrams and source code in sync. At least code generation shouldn’t corrupt my source code. And vice-versa.

    You are exactly right, this is something we are looking closely at soon. The original intent of the UML tool was to provide light-weight modelling, visualization and generation to folks that needed it, but in these cases it will overwrite source code which is a problem.

    #267559 Reply

    Great! Looking forward!

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Goto class definition from Class Diagram

You must be logged in to post in the forum log in