Home » Modeling » M2T (model-to-text transformation) » [Xpand] cannot start workflow from a plugin
[Xpand] cannot start workflow from a plugin [message #718924] |
Thu, 25 August 2011 15:49  |
st oehm Messages: 79 Registered: October 2009 |
Member |
|
|
hi to all
i'm trying to start my xpand workflow from a plugin (using the org.eclipse.emf.mwe.core.WorkflowRunner)
the mwe-file is in the plugin-project (like all other things i need for the codegen)
when i start the mwe-file by rigth click all runs fine (the same when i start it from code in the plugin) but when i want invoke it from the plugin nothing happens no errors just false from the workflow.run(...)
thats my manifest-file:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ui
Bundle-SymbolicName: de.ubt.ai1.uml.codegen.ui; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: de.ubt.ai1.uml.codegen.ui.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.jface.text,
org.eclipse.ui.editors,
org.eclipse.ui.navigator,
org.eclipse.ui.navigator.resources,
org.eclipse.ui.ide,
org.eclipse.ui.intro,
org.eclipse.ui.intro.universal,
org.eclipse.ui.console,
org.eclipse.jdt.ui,
org.eclipse.swt,
org.eclipse.jface,
org.eclipse.ui.workbench,
org.eclipse.jdt.core;bundle-version="3.5.0",
org.eclipse.xtend.profiler;resolution:=optional,
org.apache.commons.logging,
org.apache.log4j;resolution:=optional,
com.ibm.icu;bundle-version="4.0.1",
org.antlr.runtime;bundle-version="3.0.0",
org.eclipse.core.runtime;bundle-version="3.5.0",
org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
org.eclipse.jface.text;bundle-version="3.5.0",
org.eclipse.xpand;bundle-version="0.7.0",
org.eclipse.xtend;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
org.eclipse.xtend.backend;bundle-version="1.0.0";resolution:=optional,
org.eclipse.xtend.middleend.xpand;bundle-version="1.0.0";resolution:=optional,
org.eclipse.xtend.middleend.xtend;bundle-version="1.0.0";resolution:=optional,
org.eclipse.xtend.typesystem.uml2;bundle-version="1.0.1",
org.eclipse.ocl;bundle-version="3.0.2",
org.eclipse.ocl.ecore;bundle-version="3.0.2",
org.eclipse.ocl.uml;bundle-version="3.0.2",
org.eclipse.xtend.util.stdlib;bundle-version="1.0.1",
org.eclipse.swt;bundle-version="3.6.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
a picture is appended which shows the structure of my plugin-project
thanks for any help
greetings
Attachment: pTest.png
(Size: 41.00KB, Downloaded 303 times)
|
|
| | | | | | |
Re: [Xpand] cannot start workflow from a plugin [message #719168 is a reply to message #718990] |
Fri, 26 August 2011 08:55   |
st oehm Messages: 79 Registered: October 2009 |
Member |
|
|
hi christian
thanks a lot, the problem with classpath error dissapeared now, but still i can't run the workflow, debugging leads to, that configOK == true and the errorsize in issues ==0 but when i step further into executeWorkflow trying to call
workflow.invoke(wfContext, monitor, issues);
does not work so again the run-method returns false, debugging the invoke-method says nothing to me so maybe you have any idea what could be wrong?
another problem is, that you need the path of the workflowFile as a String. for testing i set the absolut path from the mwe-file. but later that can't work, any idea what i have to do there
greetings
stoehm
[Updated on: Fri, 26 August 2011 08:59] Report message to a moderator
|
|
| | | | | |
Goto Forum:
Current Time: Sat Apr 01 12:30:10 GMT 2023
Powered by FUDForum. Page generated in 0.02665 seconds
|