| Author |
Message |
|
|
Post subject: Abstraction when in different packages, class diagrams
Posted: Mar 08, 2007 - 04:15 PM
|
|
Registered Member


Joined: Nov 09, 2005
Posts: 3
|
|
I 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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 09, 2007 - 02:27 PM
|
|
Registered Member


Joined: Aug 31, 2005
Posts: 14
|
|
Hi,
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. |
|
|
| |
|
|
|
 |
|
|
|
Post subject:
Posted: Mar 09, 2007 - 02:41 PM
|
|
Registered Member


Joined: Nov 09, 2005
Posts: 3
|
|
Apparently 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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 14, 2007 - 11:54 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23348
|
|
| Guys 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
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 14, 2007 - 11:57 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23348
|
|
Ok 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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 20, 2007 - 03:48 PM
|
|
Registered Member


Joined: Nov 09, 2005
Posts: 3
|
|
Thanks 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! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 20, 2007 - 04:14 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23348
|
|
| 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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 02, 2008 - 05:09 PM
|
|
Registered Member


Joined: Aug 31, 2005
Posts: 14
|
|
| 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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 02, 2008 - 07:03 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23348
|
|
Alain,
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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|