facebook

Seem to have duplicate package in the UML modeller

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

    Brett Connor
    Member

    I’m getting confused here. I’ve taken over some code and I’m trying to model the bits I’m adding. I reverse engineered a few classes (one package I think) from the existing code just to see how well it worked.
    Now I’m diagramming (class, communication, sequence, state) my new code following the guidelines in the tutorial, creating a class diagram, package etc.

    What I now find is that I have two packages of the same name: x.y.fred, with some classes on the class diagram in one ‘fred’ and the other classes in the other ‘fred’, and not showing up in the UML->Generate Java…

    Another problem I’ve had (resulting from labels disappearing from various diagrams) is garbage showing in the outline, which often can’t be deleted.

    I don’t understand how to make proper use of the ‘namespace’ either, it isn’t doing what I want (hence the duplicate package name’ problem above) and it doesn’t help that its not hierachical.

    In summary, I could really use some more complete documentation. Any estimate when there’ll be some progress on this?

    Regards
    Brett

    #248192 Reply

    Kapil Kapre
    Member

    What I now find is that I have two packages of the same name: x.y.fred, with some classes on the class diagram in one ‘fred’ and the other classes in the other ‘fred’, and not showing up in the UML->Generate Java…
    Another problem I’ve had (resulting from labels disappearing from various diagrams) is garbage showing in the outline, which often can’t be deleted.

    Brett,
    Which version of ME are you running? Also to remove any extra model elements try switching to “Package Centric” mode in the outline view and see if that helps you see them and remove them. Also note that package with *NAME* x.y.z is different from hierarchy x->y->z in MyUML.

    I don’t understand how to make proper use of the ‘namespace’ either, it isn’t doing what I want (hence the duplicate package name’ problem above) and it doesn’t help that its not hierachical.

    Could you specify exactly what you expect so that we’re on the same page.

    Thanks,
    Kapil

    #248204 Reply

    Brett Connor
    Member

    Oh keep forgetting that part: I’m running ME 4.1 GA on Eclipse 3.1:

    Eclipse SDK
    Version: 3.1.0
    Build id: I20050627-1435

    ME 4.1.0 GA
    Build Id: 20060122-4.1-GA

    Re deleting garbage:
    I’ve tried Package-centric (it’s what I’m using most of the time, rightly or wrongly). A little way down what looks like a package hierarchy I have a node called “MyEclipse Diagram Root”, in here are a few entries like dfjkjdkf, fjfjffjfj. I R-click on these, select “delete from model”, and nothing happens. Same result if I click the dustbin in the properties view.

    Re package, namespace etc.
    This project has a combination of reverse engineered, daigramed code and probably stuff that’s done wrongly while I’m experimenting with the tool to get it to do what I want, so it’s very likely that to get where I want to go to, “you wouldn’t start from here”.

    What I tried and failed to do is create a package hierarchy and diagram sets of classes within a package (I want several different class diagrams / package in some instances – is there any reason why I can’t do that?), and then generate code for selected classes / interfaces within this package.
    The tutorial I found said in essence “create a class diagram, create a package, double click on the package, OK the prompt, and you’re shiny”.
    I thought I had done this, but quite possibly I took a wrong turn somewhere, or already had confused the tool with earlier experimenting.

    In the package centric view I have what looks like a package hierarchy (package icons):

      a
        b
          c
            fred
            fred
    

    What is this if it’s not a package? Both fred’s have classes, associations, generalizations etc in them.

    If I follow the sequence above (create a package, double click it etc) and then create classes on the resulting class diagram, are they naturally taken as being in that package? How do I reference or create classes that will be in a different package? How do I specify what package each new class / i/f will be in?
    Sometimes I get the results I’m expecting, sometimes not.

    Thanks for your help.

    #248237 Reply

    Kapil Kapre
    Member

    Oh keep forgetting that part: I’m running ME 4.1 GA on Eclipse 3.1:

    Please upgrade to 4.1.1GA as we’ve added in some fixes in the reverse engineering dept.

    Re deleting garbage:
    I’ve tried Package-centric (it’s what I’m using most of the time, rightly or wrongly). A little way down what looks like a package hierarchy I have a node called “MyEclipse Diagram Root”, in here are a few entries like dfjkjdkf, fjfjffjfj. I R-click on these, select “remove from model”, and nothing happens. Same result if I click the dustbin in the properties view.

    What type elements are these?

    If I follow the sequence above (create a package, double click it etc) and then create classes on the resulting class diagram, are they naturally taken as being in that package? How do I reference or create classes that will be in a different package? How do I specify what package each new class / i/f will be in?
    Sometimes I get the results I’m expecting, sometimes not.

    The diagrams are just a partitioner mechanism. You should be able to have any hierarchy you want. You can create multiple packages in a single diagram and either change their namespace or drag and drop child packages onto parent packages. (this is bit tricky as you have to resize the figures accordingly)

    #249547 Reply

    Annie Xie
    Member

    In Regard to your first question: I found out that you need to close that package after you delete an object from it and reopen it (sort of refreshing the display), then the deleted object is gone.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Seem to have duplicate package in the UML modeller

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