Home » Modeling » Papyrus » Custom Diagram Implementation(How to transform a GMF-based diagram into a Papyrus-diagram)
| | | | |
Re: Custom Diagram Implementation [message #1769287 is a reply to message #1769285] |
Fri, 28 July 2017 15:43 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi,
I wouldn't recommend using two different versions of Papyrus for the code generation, as gmfgen models and code generation can change quite a lot between versions, so you should use Oxygen exclusively.
if you want to use Neon exclusively, the developer plug-ins are available here [1] (Oxygen ones are here [2]. The missing "oep.uml.m2m.qvto.common" plug-in is only available in Papyrus Oxygen, so you won't be able to install it on Neon
Regarding Xtend, it is part of the Eclipse Release Train, so you can find it in the update site for your current eclipse release, i.e. [3] or [4] depending on whether you're using Neon or Oxygen. Simply look for "Xtend IDE"
[1] https://hudson.eclipse.org/papyrus/view/Neon/job/Papyrus-Neon-Developer/lastSuccessfulBuild/artifact/repository/
[2] https://hudson.eclipse.org/papyrus/view/Oxygen/job/Papyrus-Oxygen-Developer/lastSuccessfulBuild/artifact/repository/
[3] http://download.eclipse.org/releases/neon
[4] http://download.eclipse.org/releases/oxygen
HTH,
Camille
Camille Letavernier
|
|
|
Re: Custom Diagram Implementation [message #1769535 is a reply to message #1769287] |
Tue, 01 August 2017 11:46 |
Jan Galler Messages: 7 Registered: July 2017 |
Junior Member |
|
|
Hello everyone,
Thanks Camille, I also want to just use a single version exclusively because of stability and integrity - sure.
But it seems like I can not use Neon, because of the unavailability of the "oep.uml.m2m.qvto.common" plug-in, right?
So I thought I'd start to troubleshoot the Oxygen process again... The thing is more of a GMF problem as a Papyrus problem, I guess:
When I want to transform - within the GMF process - from the *.gmfmap to the *.gmfgen, the transformation fails with the following error:
java.lang.NoSuchMethodError: org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler.compile(Lorg/eclipse/m2m/internal/qvt/oml/compiler/UnitProxy;Lorg/eclipse/m2m/internal/qvt/oml/compiler/QvtCompilerOptions;Lorg/eclipse/emf/common/util/Monitor;)Lorg/eclipse/m2m/internal/qvt/oml/compiler/CompiledUnit;
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.doLoadQvtResource(ResourceManagerImpl.java:80)
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResourceThroughCache(ResourceManagerImpl.java:64)
at org.eclipse.gmf.internal.xpand.util.ResourceManagerImpl.loadQvtResource(ResourceManagerImpl.java:47)
at org.eclipse.gmf.internal.xpand.model.Scope.findExtension(Scope.java:148)
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getImportedModules(ExecutionContextImpl.java:293)
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.getOCLEnvironment(ExecutionContextImpl.java:254)
at org.eclipse.gmf.internal.xpand.ocl.TypeHelper.getTypeForName(TypeHelper.java:35)
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:231)
at org.eclipse.gmf.internal.xpand.model.ExecutionContextImpl.findDefinition(ExecutionContextImpl.java:167)
at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFacade.java:54)
at org.eclipse.gmf.graphdef.codegen.FigureGenerator.fqnSwitch(FigureGenerator.java:85)
at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.createViewmap(InnerClassViewmapProducer.java:123)
at org.eclipse.gmf.internal.bridge.genmodel.InnerClassViewmapProducer.create(InnerClassViewmapProducer.java:76)
at org.eclipse.gmf.internal.bridge.genmodel.DiagramGenModelTransformer.process(DiagramGenModelTransformer.java:413)
at org.eclipse.gmf.internal.bridge.genmodel.MappingTransformer.transform(MappingTransformer.java:31)
at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation$2.process(TransformToGenModelOperation.java:446)
at org.eclipse.gmf.internal.bridge.transform.TransformToGenModelOperation.executeTransformation(TransformToGenModelOperation.java:272)
at org.eclipse.gmf.internal.bridge.ui.dashboard.actions.TransformMap2GenModelAction.run(TransformMap2GenModelAction.java:65)
at org.eclipse.gmf.internal.bridge.ui.dashboard.HyperlinkFigure$1.mousePressed(HyperlinkFigure.java:63)
at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:938)
at org.eclipse.draw2d.SWTEventDispatcher.dispatchMousePressed(SWTEventDispatcher.java:242)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4257)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1502)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1525)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1510)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1314)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4081)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
Searching the web didn't do the thing. As I can see, the method compile() can't be found (with the given signature). So, it seems like a compatibility problem, right? The calling code of the QVT uses another signature for compile() or so?
Maybe there is a version-conflict or something like that?
I don't know, where or for what to look and search. I didn't install anything of QVT manually, I guess it's a dependency of the GMF stuff and was (hopefully) installed automatically? Or do I need to install something manually?
Maybe someone has a hint, as I'm not getting anywhere with the problem...
Thanks a million.
Update:
These plug-ins related to the term "QVT" are currently installed:
See attachment "qvt-plugins".
(I just installed the QVT operational stuff)
[Updated on: Tue, 01 August 2017 12:43] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Thu Apr 25 19:22:46 GMT 2024
Powered by FUDForum. Page generated in 0.03686 seconds
|