Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Switching from annotated XSD to annotated UML?
[Teneo] Switching from annotated XSD to annotated UML? [message #429350] Tue, 21 April 2009 09:13 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

I have a largish model about 400 elements. there are several hundred jpa
and I think a few Hibernate annotations that drive Teneo's generation
efforts. Now the working group I am a part of looks like switching to
UML as a basis for further development of this model. Is there a way of
switching all my work in the XSD to a UML (I suppose xmi?)
representation, preserving all my annotations?

thx.

David
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429352 is a reply to message #429350] Tue, 21 April 2009 09:08 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi David,
Can you check if the annotations are preserved in the ecore which is generated from the xsd (I would say so)? Ed knows
much more about ecore to uml than I do. Hopefully he reads this thread.... (I am pretty sure).

gr. Martin

David Wynter wrote:
> Hi,
>
> I have a largish model about 400 elements. there are several hundred jpa
> and I think a few Hibernate annotations that drive Teneo's generation
> efforts. Now the working group I am a part of looks like switching to
> UML as a basis for further development of this model. Is there a way of
> switching all my work in the XSD to a UML (I suppose xmi?)
> representation, preserving all my annotations?
>
> thx.
>
> David


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429355 is a reply to message #429352] Tue, 21 April 2009 10:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Guys,

You can use "Export Model..." from the GenModel to export your Ecore
model to any other form, including UML. I think it will preserve all
the EAnnotations.


Martin Taal wrote:
> Hi David,
> Can you check if the annotations are preserved in the ecore which is
> generated from the xsd (I would say so)? Ed knows much more about
> ecore to uml than I do. Hopefully he reads this thread.... (I am
> pretty sure).
>
> gr. Martin
>
> David Wynter wrote:
>> Hi,
>>
>> I have a largish model about 400 elements. there are several hundred
>> jpa and I think a few Hibernate annotations that drive Teneo's
>> generation efforts. Now the working group I am a part of looks like
>> switching to UML as a basis for further development of this model. Is
>> there a way of switching all my work in the XSD to a UML (I suppose
>> xmi?) representation, preserving all my annotations?
>>
>> thx.
>>
>> David
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429358 is a reply to message #429355] Tue, 21 April 2009 10:51 Go to previous messageGo to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Thx.

I had worked that out. I seleted each of "Ignore", "Report" and
"Process" for both "Annotation Details" and "Body Annotations". Each
time I get this exception.

java.lang.reflect.InvocationTargetException
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
at
org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.eclipse.core.runtime.CoreException: An error occurred
while performing this operation.
at
org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
... 45 more
Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
occurred while performing this operation.
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
... 48 more
Caused by: java.lang.NullPointerException
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
at
org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
at org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
at
org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
... 48 more

Ed Merks wrote:
> Guys,
>
> You can use "Export Model..." from the GenModel to export your Ecore
> model to any other form, including UML. I think it will preserve all
> the EAnnotations.
>
>
> Martin Taal wrote:
>> Hi David,
>> Can you check if the annotations are preserved in the ecore which is
>> generated from the xsd (I would say so)? Ed knows much more about
>> ecore to uml than I do. Hopefully he reads this thread.... (I am
>> pretty sure).
>>
>> gr. Martin
>>
>> David Wynter wrote:
>>> Hi,
>>>
>>> I have a largish model about 400 elements. there are several hundred
>>> jpa and I think a few Hibernate annotations that drive Teneo's
>>> generation efforts. Now the working group I am a part of looks like
>>> switching to UML as a basis for further development of this model. Is
>>> there a way of switching all my work in the XSD to a UML (I suppose
>>> xmi?) representation, preserving all my annotations?
>>>
>>> thx.
>>>
>>> David
>>
>>
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429359 is a reply to message #429358] Tue, 21 April 2009 10:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
David,

It sounds like you'll need to report a bugzilla against the UML2 project.


David Wynter wrote:
> Thx.
>
> I had worked that out. I seleted each of "Ignore", "Report" and
> "Process" for both "Annotation Details" and "Body Annotations". Each
> time I get this exception.
>
> java.lang.reflect.InvocationTargetException
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>
> at
> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>
> at
> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
> while performing this operation.
> at
> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>
> ... 45 more
> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
> occurred while performing this operation.
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>
> ... 48 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>
> at
> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>
> at
> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
> at
> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>
> ... 48 more
>
> Ed Merks wrote:
>> Guys,
>>
>> You can use "Export Model..." from the GenModel to export your Ecore
>> model to any other form, including UML. I think it will preserve all
>> the EAnnotations.
>>
>>
>> Martin Taal wrote:
>>> Hi David,
>>> Can you check if the annotations are preserved in the ecore which is
>>> generated from the xsd (I would say so)? Ed knows much more about
>>> ecore to uml than I do. Hopefully he reads this thread.... (I am
>>> pretty sure).
>>>
>>> gr. Martin
>>>
>>> David Wynter wrote:
>>>> Hi,
>>>>
>>>> I have a largish model about 400 elements. there are several
>>>> hundred jpa and I think a few Hibernate annotations that drive
>>>> Teneo's generation efforts. Now the working group I am a part of
>>>> looks like switching to UML as a basis for further development of
>>>> this model. Is there a way of switching all my work in the XSD to a
>>>> UML (I suppose xmi?) representation, preserving all my annotations?
>>>>
>>>> thx.
>>>>
>>>> David
>>>
>>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429361 is a reply to message #429359] Tue, 21 April 2009 11:16 Go to previous message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

Yes, one other person experienced it too

http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg02974.html

David
Ed Merks wrote:
> David,
>
> It sounds like you'll need to report a bugzilla against the UML2 project.
>
>
> David Wynter wrote:
>> Thx.
>>
>> I had worked that out. I seleted each of "Ignore", "Report" and
>> "Process" for both "Annotation Details" and "Body Annotations". Each
>> time I get this exception.
>>
>> java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>>
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>>
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>>
>> at
>> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>>
>> at
>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
>> while performing this operation.
>> at
>> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>>
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>>
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>>
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>>
>> ... 45 more
>> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
>> occurred while performing this operation.
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>>
>> ... 48 more
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>>
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>>
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>>
>> at
>> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>>
>> at
>> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
>> at
>> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>>
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>>
>> ... 48 more
>>
>> Ed Merks wrote:
>>> Guys,
>>>
>>> You can use "Export Model..." from the GenModel to export your Ecore
>>> model to any other form, including UML. I think it will preserve all
>>> the EAnnotations.
>>>
>>>
>>> Martin Taal wrote:
>>>> Hi David,
>>>> Can you check if the annotations are preserved in the ecore which is
>>>> generated from the xsd (I would say so)? Ed knows much more about
>>>> ecore to uml than I do. Hopefully he reads this thread.... (I am
>>>> pretty sure).
>>>>
>>>> gr. Martin
>>>>
>>>> David Wynter wrote:
>>>>> Hi,
>>>>>
>>>>> I have a largish model about 400 elements. there are several
>>>>> hundred jpa and I think a few Hibernate annotations that drive
>>>>> Teneo's generation efforts. Now the working group I am a part of
>>>>> looks like switching to UML as a basis for further development of
>>>>> this model. Is there a way of switching all my work in the XSD to a
>>>>> UML (I suppose xmi?) representation, preserving all my annotations?
>>>>>
>>>>> thx.
>>>>>
>>>>> David
>>>>
>>>>
Previous Topic:Illegal Value Exception by loading a custom model
Next Topic:Platform URIs
Goto Forum:
  


Current Time: Wed Sep 25 14:46:09 GMT 2024

Powered by FUDForum. Page generated in 0.12977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top