facebook

UML2 Import XMI 2.1

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

    mlafleur
    Member

    UML2 Import XMI 2.1 file

    I am getting:
    “The resource selected for import is invalid. Please select a valid XMI 2.1 file.”

    I have tried both with a file generated by an external tool and a file generated within MyEclipse.

    Example file created in MyEclipse:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <uml:Model xmi:version=”2.1″ xmlns:xmi=”http://schema.omg.org/spec/XMI/2.1&#8243; xmlns:uml=”http://www.eclipse.org/uml2/3.0.0/UML&#8221; xmi:id=”_qb8akM37EdqwVrslYOdUDA” name=”test1″>
    <packagedElement xmi:type=”uml:Class” xmi:id=”_dXVNwFhkEd-WDZk3pa04GA” name=”MarcClass”/>
    </uml:Model>

    Is there a special project type that I need to import into?

    *** Date:
    Wednesday, May 5, 2010 11:59:54 AM CDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.5
    Build id: 8.5-20100319

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.5
    Build id: 8.5-20100319

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 8.5\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Program Files/Genuitec/MyEclipse 8.5
    -configuration
    configuration
    -clean
    -vm
    C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    #308174 Reply

    Hi mlafleur,

    It is not reproducible at my end. Can you try the steps given below:

    1) Create a web project.
    2) Create an UML2 diagram and add a Class with name “SamClass”.
    3) Right click on the project and select “Export–>UML2–>XMI 2.1 (MyEclipse)” and click “Next” button.
    4) Give the destination and select the .uml and click “Finish” button.
    5) Now create another web project and try to import the XMI file into the new web project.

    Please let me know.

    Thanks,
    Chakri Vedula.

    #308183 Reply

    mlafleur
    Member

    Okay, apparently the file needs to have a .xmi extension for it to work. Thanks.

    #308205 Reply

    Hi mlafleur,

    Good to hear that you are all set. Thank you.

    Thanks,
    Chakri Vedula.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: UML2 Import XMI 2.1

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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