- This topic has 13 replies, 3 voices, and was last updated 17 years, 11 months ago by SweetnMaxwell.
-
AuthorPosts
-
jimshingMemberI looked through the forum and didn’t see this mentioned, Hopefully I didn’t just miss it.
I am running:
MyElipse 5.1
Eclipse 3.2.1
JDK 1.5_09I did DnD Reverse Engineering of an interface, the method showed up in the UML but the Method Parameters were missing. really strange.
So I tried it on the class that implements the interface. The public methods that implement the Interface were missing parameters but the private methods had parameters.
So I tried it on a class that didn’t implement any interface and the Public methods had parameters.
Is this a known issue or am I just missing something?
Thanks for you help
Jim
Riyad KallaMemberJim,
When you DnD’ed the classes, did you be sure to uncheck the “Hide class/interface details” option? I just did this and it worked fine.
jimshingMemberI discovered more information that narrows it down a little more.
If the Interface is part of the same eclipse project, . . . the parameters are included on the method signature.
I have setup a separate model project. If I DnD from a non-model project to the model project, . . . the method parameters are not drawn.
Hope this helps.
Please advise.
jimshingMemberI have a simple workspace that reproduces the problem, . . . How can I get it too you? Only 2Meg
jimshingMemberPrivate Messaged File to support-rkalla
Thanks
Jim
jimshingMemberMy Installation Summary:
*** Date:
Sunday, December 3, 2006 7:29:41 PM EST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_09*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.1.0 GA
Build id: 20061111-5.1.0-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.1.0 GA
Build id: 20061111-5.1.0-GAEclipse Platform
Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
Build id: M20060921-0945Eclipse Java Development Tools
Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
Build id: M20060921-0945Eclipse Project SDK
Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
Build id: M20060921-0945Eclipse RCP
Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
Build id: M20060921-0945
Riyad KallaMemberJim,
I got your PM, no need to reply with a link, thanks for sending that along. Although the ZIP was corrupted, I couldn’t unzip it, so what I did was create a new workspace, with 2 projects in it. One plain Java project and one Java project with the UMR in it. Then I DnD’ed the classes form the first project into the UMR diagram in the second project… everything seemed kosher.I’m going to attach a screenshot of the result and the projects themselves for you to try.
Riyad KallaMemberHere is the screenshot and projects.
Attachments:
You must be logged in to view attached files.
jimshingMemberScreenshoot is missing.
The upload limit is 2Meg so I used max compression. It must have screwed up the Zip file.
I create one project A with an Interface a setAA(AA aa)
I created second project B with an Interface setA(A a)
In project B when I did the UMR Dnd of Project B interface, Uml was rendered as setA();
If you can up the Upload limit for my account I would be happy to send it to you.
jimshingMemberhave screen shot it took a couple of minutes.
Riyad KallaMemberOhhh, the actual types you not seeing are across multiple projects?
jimshingMemberOkay,
There is definately a mystery here.
I verified that I was able to reproduce the behavior I described on the company project. And sure enough I was missing an attribute that was a non-primative type (user object). So, I cleared diagram, Dnd the missing class to the diagram, and ten the interface that used it and the missing parameter was now present.
If I were you I would think I was crazy, but this really happened. And Now that I have done it once, I clear the diagram again and pulled just the interface using the user object and it rendered correctly, the attribute wasn’t missing from the method.
There is definately strange behaviour, But, . . . At least I know how to get my attributes to show up.
If I hadn’t experienced it myself, . . . I would say that it was user error.
Riyad KallaMemberDon’t worry I have seen enough “now that someone is looking, it’s working” things to know that what you said is true… keep your eyes peeled if it happens again and let me know. Thank you for keeping me posted, for the time being I’m glad things are working smoothly.
SweetnMaxwellMemberHad a similar problem with missing parameters.
I’m using the latest MyEclipse (Version: 5.1.0 GA).
All the interfaces/classes are in the same project.
I dnd’ed an interface with two methods onto the UML:
Document getDocument(Path p_path, TimeFrame p_timeframe)
Document getDocument(Path p_path, TimeFrame p_timeframe, Boolean p_isForPrint)where Boolean is the java.lang class, and Path and TimeFrame our own classes.
First time round, Path & TimeFrame were missing, so the first method had no parameters, and the second just the Boolean.
Then I dragged Path into the diagram and deletetd it, and deleted and redragged the interface.
It now had one parameter for the first method (Path) and two for the second (Path, Boolean)
Repeated with TimeFrame, and finally got all the parameters that should be there!
Bit tricky to send a sample workspace, but you should get a shot a reproducing it from this.
You should just need an interface and two classes, all in different packages.
-
AuthorPosts