facebook

Reverse Engineering Interface – Missing Method Parameters

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

    jimshing
    Member

    I 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_09

    I 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

    #262896 Reply

    Riyad Kalla
    Member

    Jim,
    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.

    #262947 Reply

    jimshing
    Member

    I 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.

    #262948 Reply

    jimshing
    Member

    I have a simple workspace that reproduces the problem, . . . How can I get it too you? Only 2Meg

    #262949 Reply

    jimshing
    Member

    Private Messaged File to support-rkalla

    Thanks

    Jim

    #262953 Reply

    jimshing
    Member

    My 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 Workbench

    Version: 5.1.0 GA
    Build id: 20061111-5.1.0-GA

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060921-0945

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060921-0945

    #262972 Reply

    Riyad Kalla
    Member

    Jim,
    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.

    #262973 Reply

    Riyad Kalla
    Member

    Here is the screenshot and projects.

    Attachments:
    You must be logged in to view attached files.
    #263004 Reply

    jimshing
    Member

    Screenshoot 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.

    #263005 Reply

    jimshing
    Member

    have screen shot it took a couple of minutes.

    #263006 Reply

    Riyad Kalla
    Member

    Ohhh, the actual types you not seeing are across multiple projects?

    #263007 Reply

    jimshing
    Member

    Okay,

    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.

    #263008 Reply

    Riyad Kalla
    Member

    Don’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.

    #263324 Reply

    Had 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.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Reverse Engineering Interface – Missing Method Parameters

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