|
|
|
|
|
Re: [Teneo] Switching from annotated XSD to annotated UML? [message #429361 is a reply to message #429359] |
Tue, 21 April 2009 11:16 |
David Wynter 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
>>>>
>>>>
|
|
|
Powered by
FUDForum. Page generated in 0.12977 seconds