[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: How to load MagicDraw .uml file?

There is an effort going on at the OMG that address' interoperability: 
http://www.omgwiki.org/model-interchange/doku.php?id=start

One of the issues with interchanging profiles is that the opensource 
implementation expects a "defined" version of the profile (ecore 
representation).   Commercial tools build additional handling on top of the 
opensource implementation to handle the various differences.

- James.


"Scott " <scottgraham03@xxxxxxxxx> wrote in message 
news:85d1477a69a9ff12c805edb4fd54ca83$1@xxxxxxxxxxxxxxxxxx
> Hi Tim,
>  Thanks for your quick reply.
> It opened some other issues as following:
>
> I created uml diagram in MagicDraw and exported as EMF UML 2.1, then 5 
> files were generated;
> Model1.uml
> UML_Standard_Profile.UML_Standard_Profile.profile.uml
> UML_Standard_Profile.MagicDraw_Profile.profile.uml
> UML_Standard_Profile.Validation_Profile.profile.uml
> UML_Standard_Profile.MagicDraw_Profile.DSL_Customization.profile.uml
>
> My data file is ?Model1.uml?, and I think the other 4 files are the 
> dependencies. So, how to register/load these other 4 files?
>
> I was able to find MD uml.resources jar and register it as following:
> URI uri = 
> URI.createURI("jar:file:/C:/MD-16.5/org.eclipse.uml2.uml.resources_2.0.3.jar!/");
> I tried opening ?Model1.uml? in Eclipse (without the MagicDraw plugins 
> installed), and got java.lang.NullPointerException
>
> If I omit/comment the last three profiles (in Model1.uml):
> UML_Standard_Profile.MagicDraw_Profile.profile.uml
> UML_Standard_Profile.Validation_Profile.profile.uml
> UML_Standard_Profile.MagicDraw_Profile.DSL_Customization.profile.uml
>
> And the line of:
>
>  <MagicDrawProfile:auxiliaryResource xmi:id="_2FW1Dpi9Ed6q1qHohKbyGg" 
> base_Element="magicdraw_uml_standard_profile_v_0001" 
> base_Package="magicdraw_uml_standard_profile_v_0001"/>
>
> Then, I can load ?Model1.uml? in Eclipse, but without data types, all 
> elements are XML AnyTypeImpl
>
> If solving this problem is complicated, can you please point out to some 
> references to read?
>
>
> Thanks,
>
> Scott
>
>