- This topic has 8 replies, 3 voices, and was last updated 16 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
ansancleMemberI have to apologize up front on this since I know it has to be VERY simple but endless googling/forum searching has done me no good.
All I am trying to do is model classes in one package (and one class diagram) that inherit from interfaces and classes in another package (another class diagram) and I cannot find out how to do this.
Specifically, in package com.foo.a I have interface FooInterface and class FooBaseClass.
in package com.foo.b I have classes SubFooClassA and SubFooClassB. SubFooClassA implements the interface FooInterface and SubFooClassB extends FooBaseClass.
Since they are in different class diagrams I can’t simple draw the links using the toolbar.
Since I know this has to be very trivial I am absolutely going insane, Thanks.
PERRYALAINMemberHi,
I try to do the same things, and go to the same sticking situation.
As you said, all this should be a trivial stuff.
So, I believe in a more complete MyUML documentation about guide lines, best practices, …
This should be a great help.
ansancleMemberApparently it’s not that simple – and as the previous post stated – there is absolutely no documentation on how to do this – I have searched endlessly.
Wondering if a MyEclipse moderator can’t jump in here and throw us a bone, this should be one of the simplest tasks in the UML editor. Showing inheritence across packages should not be this hard.
Riyad KallaMemberGuys I’m really sorry about missing this post, the forum software was showing it to me as “replied to” so it didn’t popup to me as “unanswered”.
Riyad KallaMemberOk so to follow up, I’ve created an example project that I think exhibits the issues you were asking about. You can download it here and import it into your workspace.
After reverse engineering it, you will get two diagrams that look similar to the ones below, but notice in the 2nd one (impl) I dragged and dropped the IPerson interface on that diagram to get the relationship with MarriedPerson shown for me manually. MyUML is not going to do this for you automatically because in complicated applications, like some of the Eclipse platform classes, the complete-closures of those classes would make 1000s of classes end up duplicated in every single package diagram, so what we do is package-closure, meaning we show all references per-package.
Also note in the 1st diagram, the “impl” package is correctly shown to you, and you can double-click it to go “into” the impl package and see the classes in it.
I hope this helps makes things more clear.
Attachments:
You must be logged in to view attached files.
ansancleMemberThanks for the response, I had basically given up using MyUML but now have gone back to it.
Just to clarify for anyone else that may be having this problem, you need to drag the class from the outline view onto the class diagram where you want to use it, took me a few minutes to figure that out from your post. Once the class is there you can specify the relationships as needed.
It makes sense having it work this way, Im just very suprised it isn’t documented ANYWHERE. In fact this thread is probably the only place that does describe how to have relationships across different packages.
Thanks again!
Riyad KallaMemberIt’s horrible I know, we are working on a UML tutorial right now, but it’s in the planning stages and there are a few other tutorials to finish first. I’m really sorry for the confusion.
PERRYALAINMember@support-rkalla wrote:
It’s horrible I know, we are working on a UML tutorial right now, but it’s in the planning stages and there are a few other tutorials to finish first. I’m really sorry for the confusion.
Hi, I already posted a need for improving the links between classes/interfaces in different packages ; this was en march 2007.
Today, with MyEclipse 6.5, in july 2008, I still face the same problem.
Well, Riyad, on your class diagram for the “impl package”, how do you see that the interface IPerson belongs to the other “package” ? You can tell me that we can see that in the property windows ; true, but in a group of people, we often get only the diagram on a paper.
It could have been simple to display the namespace in the box for a class/interface (or, anyway, to made it possible on demand).Your sample with 3 objects is difficult to read, what could it be with a real diagram with lot of objects in the same package.
So, I’m sorry, but I’m still disappointed with the UML Module in MyEclipse.
Alain
Riyad KallaMemberAlain,
We are working hard to try and rectify the state of the UML tools during the 7.x release train. I don’t have more details at this moment for you, but we are aware of some of the UML shortcomings and want to improve them for our users. -
AuthorPosts