Re: UML to XMI export programmatically? [message #477075] |
Wed, 12 March 2008 09:17  |
Eclipse User |
|
|
|
Gary,
Are you simply trying to save a UML instance using an interchangeable
format? Maybe XMI2UMLResource does that? I'm not really sure where
this export action is; I don't work with UML much, though I have it in
my workspace. You'd create such a resource using
XMI2UMLResource.Factory.INSTANCE.create... It's best to ask about UML
on the UML newsgroup, which I've added to the "to" list of the reply.
Gary Martin wrote:
> There is a UML to XMI Interchange Format converter as part of the Export in
> 'Eclipse'. I am looking for how to programmatically do the same thing. I
> know I can build a XSLT or JET2 or something else; however, what I need to
> be able to do is to programmatically invoke the same underlying
> functionality (do not want the wizard dialog box...just the conversion
> functionality).
>
> I'm new to eclipse - might this be part of the puzzle?
>
> http://download.eclipse.org/modeling/mdt/xsd/javadoc/2.3.0/o rg/eclipse/xsd/ecore/exporter/XMIExporter.html
>
>
>
>
>
|
|
|
|
Re: UML to XMI export programmatically? [message #477128 is a reply to message #477075] |
Tue, 25 March 2008 17:03  |
Eclipse User |
|
|
|
Hi Gary,
Have a look at UMLEditor.doSaveAs().
It basically creates a new resource from a resource set...
resourceSet.createResource(uri,
XMI2UMLResource.UML_CONTENT_TYPE_IDENTIFIER);
Then the resource is then saved out. The conversion should happen
automatically.
I hope that helps.
Cheers,
- James.
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fr8l4r$frn$1@build.eclipse.org...
> Gary,
>
> Are you simply trying to save a UML instance using an interchangeable
> format? Maybe XMI2UMLResource does that? I'm not really sure where this
> export action is; I don't work with UML much, though I have it in my
> workspace. You'd create such a resource using
> XMI2UMLResource.Factory.INSTANCE.create... It's best to ask about UML on
> the UML newsgroup, which I've added to the "to" list of the reply.
>
>
> Gary Martin wrote:
>> There is a UML to XMI Interchange Format converter as part of the Export
>> in 'Eclipse'. I am looking for how to programmatically do the same thing.
>> I know I can build a XSLT or JET2 or something else; however, what I need
>> to be able to do is to programmatically invoke the same underlying
>> functionality (do not want the wizard dialog box...just the conversion
>> functionality).
>>
>> I'm new to eclipse - might this be part of the puzzle?
>>
>> http://download.eclipse.org/modeling/mdt/xsd/javadoc/2.3.0/o rg/eclipse/xsd/ecore/exporter/XMIExporter.html
>>
>>
>>
>>
>>
|
|
|
Re: UML to XMI export programmatically? [message #626263 is a reply to message #477075] |
Tue, 25 March 2008 17:01  |
Eclipse User |
|
|
|
Gary,
Is this option you're referring to part of a product based on Eclipse? No
such menu item is provided by the UML2 component of MDT...
Kenn
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fr8l4r$frn$1@build.eclipse.org...
> Gary,
>
> Are you simply trying to save a UML instance using an interchangeable
> format? Maybe XMI2UMLResource does that? I'm not really sure where this
> export action is; I don't work with UML much, though I have it in my
> workspace. You'd create such a resource using
> XMI2UMLResource.Factory.INSTANCE.create... It's best to ask about UML on
> the UML newsgroup, which I've added to the "to" list of the reply.
>
>
> Gary Martin wrote:
>> There is a UML to XMI Interchange Format converter as part of the Export
>> in 'Eclipse'. I am looking for how to programmatically do the same thing.
>> I know I can build a XSLT or JET2 or something else; however, what I need
>> to be able to do is to programmatically invoke the same underlying
>> functionality (do not want the wizard dialog box...just the conversion
>> functionality).
>>
>> I'm new to eclipse - might this be part of the puzzle?
>>
>> http://download.eclipse.org/modeling/mdt/xsd/javadoc/2.3.0/o rg/eclipse/xsd/ecore/exporter/XMIExporter.html
>>
>>
>>
>>
>>
|
|
|
Re: UML to XMI export programmatically? [message #626264 is a reply to message #477075] |
Tue, 25 March 2008 17:03  |
Eclipse User |
|
|
|
Hi Gary,
Have a look at UMLEditor.doSaveAs().
It basically creates a new resource from a resource set...
resourceSet.createResource(uri,
XMI2UMLResource.UML_CONTENT_TYPE_IDENTIFIER);
Then the resource is then saved out. The conversion should happen
automatically.
I hope that helps.
Cheers,
- James.
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fr8l4r$frn$1@build.eclipse.org...
> Gary,
>
> Are you simply trying to save a UML instance using an interchangeable
> format? Maybe XMI2UMLResource does that? I'm not really sure where this
> export action is; I don't work with UML much, though I have it in my
> workspace. You'd create such a resource using
> XMI2UMLResource.Factory.INSTANCE.create... It's best to ask about UML on
> the UML newsgroup, which I've added to the "to" list of the reply.
>
>
> Gary Martin wrote:
>> There is a UML to XMI Interchange Format converter as part of the Export
>> in 'Eclipse'. I am looking for how to programmatically do the same thing.
>> I know I can build a XSLT or JET2 or something else; however, what I need
>> to be able to do is to programmatically invoke the same underlying
>> functionality (do not want the wizard dialog box...just the conversion
>> functionality).
>>
>> I'm new to eclipse - might this be part of the puzzle?
>>
>> http://download.eclipse.org/modeling/mdt/xsd/javadoc/2.3.0/o rg/eclipse/xsd/ecore/exporter/XMIExporter.html
>>
>>
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.06171 seconds