facebook

Trouble with "J2EE Application Modeling with MyEclipse

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

    bruparel
    Member

    Hello,
    I am trying to work through the first of Karim Kjaffar’s tutorial on using the UML modeling capability of MyEclipse IDE Professional Edition. Here is problem that I have run into:

    On page 28 of his document, in step 2, he is advising to “Double click on the package “webstock” in the editor panel. Next, in step 3 he says “When the message “Add new class diagram to com.webstock.model ?” appears, click yes to accept.

    My version of the exercise is exhibiting a different behavior. When I double click on the package com.webstock.model, I am taken to the “Use Case” diagram “Local Dealership Inquiry” which I had created earlier. Please advise on what to do next. Looking ahead, I can see that karim is asking us to create the class diagram within this package so that the forward engineering code generation occurs within this package. I have tried to find any which way of creating the class diagram within this package, but have not found a way.

    Regards,
    Bharat

    #247246 Reply

    Kapil Kapre
    Member

    Bharat,
    Simply click the package in the diagram editor , then click the “new class diagram” on the *ECLIPSE* toolbar. That should do it.

    #250200 Reply

    cmnewcomer
    Member

    Support,

    I too appear to be having a similar problem when trying to add a new Class Diagram to the existing package as outline in the tutorial. When following the tutorial’s instructions or Kapil’s instructions above, it adds a new Class Diagram 2 at the same level as the previous Class Diagram 1 containing the Package (com.webstock.model). When I then add my class to Class Diagram 2, I noticed that selecting the Go Up icon in the Properties tab takes me to the proper package. In addition, when I try to remove the Class Diagram 1 containing the Package and supposed Class Diagram with my Classes, it acutally deletes the Class Diagram 1 and the Package (com.webstock.mode). I have reviewed the tutorial several times and retried different steps but none appear to be working.

    So my question are:

    1. Is there a problem in Eclipse with displaying the hierarchy in the Outline table?
    2. If what I’ve described is correct, how would you determine the heirarch of the object without using the Go Up cion in the Properties tab toolbar?
    3. Can you really remove a Class Diagram containing Packages as described in the tutorial?

    I expected the Outline to look as follows:

    – Class Diagram 1
    – com.webstock.model (Package)
    – Employee (Class)

    However, what I’m getting is
    – Class Diagram 1
    – com.webstock.mode (Package)
    – Class Diagram 2
    – Employee (Class)

    Any help would be greatly appreciated.

    Best Regards.

    Carl

    #250207 Reply

    Kapil Kapre
    Member

    Carl,
    What you are seeing is correct. By default the outline view is in “Diagram Centric” mode and in this mode the diagrams are at a higher level in the hierarchy so they show up before their parent packages. Just change it to Package centric and you should see the structure as you expected.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Trouble with "J2EE Application Modeling with MyEclipse

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