Home » Modeling » M2T (model-to-text transformation) » Problems integrating
Problems integrating [message #558845] |
Tue, 14 September 2010 15:04 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
Hi,
I'm currently moving a M2T generator, encapsulated inside an eclipse
plugin, from oAW4 to oAW5. So far, the renaming and everything else
worked fine, also the generator works fine, but only in a stand-alone
project in the workspace (by right-clicking on the mwe file and
selecting "Run as MWE workflow"). However, as soon as I export the
plugin and try to invoke the workflow from a delegated action (via
WorkflowRunner), nothing happens, in other words, I get custom debug
messages telling me that the generator starts generating, I get NO error
messages but also NO output. The funny thing is, using oAW4 everything
worked fine, but since I changed to oAW5, I get no output (and I only
changed the qualified names of the workflow components and inside the
..xpt files). So far, I don't have any more ideas why this happens, so I
try to get help from the news group, in hopes of somebody else already
faced a similar problem and maybe can provide me with a solution.
Thanks in advance!
Cheers,
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558846 is a reply to message #558845] |
Tue, 14 September 2010 15:11 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 05:04 PM, Philipp Zech wrote:
> Hi,
>
> I'm currently moving a M2T generator, encapsulated inside an eclipse
> plugin, from oAW4 to oAW5. So far, the renaming and everything else
> worked fine, also the generator works fine, but only in a stand-alone
> project in the workspace (by right-clicking on the mwe file and
> selecting "Run as MWE workflow"). However, as soon as I export the
> plugin and try to invoke the workflow from a delegated action (via
> WorkflowRunner), nothing happens, in other words, I get custom debug
> messages telling me that the generator starts generating, I get NO error
> messages but also NO output. The funny thing is, using oAW4 everything
> worked fine, but since I changed to oAW5, I get no output (and I only
> changed the qualified names of the workflow components and inside the
> .xpt files). So far, I don't have any more ideas why this happens, so I
> try to get help from the news group, in hopes of somebody else already
> faced a similar problem and maybe can provide me with a solution.
>
> Thanks in advance!
>
> Cheers,
>
> Philipp
sorry, forgot to finish the subject entry...
|
|
| | |
Re: Problems integrating generator into eclipse plugin [message #558881 is a reply to message #558877] |
Tue, 14 September 2010 17:46 |
|
Hi,
here is what i do
public class EditorAction1Delegate implements IEditorActionDelegate {
@Override
public void run(IAction action) {
WorkflowRunner workflowRunner = new WorkflowRunner();
workflowRunner.run("src/dummy/test.mwe", new NullProgressMonitor(), new HashMap<String, String>(), new HashMap());
}
@Override
public void selectionChanged(IAction action, ISelection selection) {
// TODO Auto-generated method stub
}
@Override
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
// TODO Auto-generated method stub
}
}
<workflow>
<component class="org.eclipse.xpand2.Generator">
<expand value="dummy::test::main FOR 'ccc'" />
<outlet path="src-gen" />
</component>
</workflow>
«DEFINE main FOR String»
«FILE "test.txt"»
«ENDFILE»
«ENDDEFINE»
the test.txt file is generated in a src-gen folder next to the eclipse exe as i expect it.
Does it work for you if you change your sample to something similar trivial? e.g. by adding this to your entry definition
«FILE "test.txt"»
«ENDFILE»
debugging FileHandleImpl may give you hints where the files are written to.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Tue, 14 September 2010 18:09] Report message to a moderator
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558884 is a reply to message #558881] |
Tue, 14 September 2010 18:16 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 07:46 PM, Christian Dietrich wrote:
> «DEFINE main FOR String»
> «FILE "test.txt"»
> «ENDFILE»
> «ENDDEFINE»
Hi Christian,
first of all, thanks for your fast reply and help. However, I even can't
get your simple example running to generate some files. It compiles, I
get no errors, and unfortunately I also get no output. I've searched my
whole disk, but no "test.txt" file was found.
Btw, are there any known problems, if using Linux?
Philipp
|
|
| | | | |
Re: Problems integrating generator into eclipse plugin [message #558895 is a reply to message #558890] |
Tue, 14 September 2010 19:03 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 08:47 PM, Christian Dietrich wrote:
> strage
>
> can you post the logging output you get?
> can you post your workflow and the action code?
>
> ~Christian
Hi,
I assume you're asking for the action code of my plugin, so here it goes:
package info.teststories.generator.plugin;
import info.teststories.generator.xpand.Teststory;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.actions.ActionDelegate;
import org.eclipse.emf.mwe.core.WorkflowRunner;
import org.eclipse.emf.mwe.core.monitor.NullProgressMonitor;
/**
* @author Philipp Zech (Philipp.Zech@uibk.ac.at)
*
* Delegated action to invoke the generator.
*/
public class GenerateStoryAction extends ActionDelegate implements
IObjectActionDelegate {
private String UMLModel = "";
private String projectLocation = "";
private final String workflowFile =
"info/teststories/generator/workflow/workflow.mwe";
private IProject project = null;
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
}
public void run(IAction action) {
Job job = new Job("Generating Teststories") {
@Override
protected IStatus run(IProgressMonitor monitor) {
monitor
.beginTask("Generating test code and test artifacts...",
100);
Map<String, String> properties = new HashMap<String, String>();
Map<String, ?> slotMap = new HashMap<String, Object>();
// configure properties passed to the work-flow engine
properties.put("UMLModel", UMLModel);
properties.put("projectLocation", projectLocation);
monitor.worked(20);
// clear the adapters file
File adapters = new File(projectLocation + File.separator
+ ".adapters.list");
if (adapters.exists()) {
adapters.delete();
}
try {
adapters.createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
monitor.worked(40);
WorkflowRunner runner = new WorkflowRunner();
runner.run(workflowFile, new NullProgressMonitor(), properties,
slotMap);
monitor.worked(95);
try {
project.refreshLocal(IProject.DEPTH_INFINITE,
monitor);
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
monitor.worked(100);
monitor.done();
return Status.OK_STATUS;
}
};
job.schedule();
}
public void selectionChanged(IAction action, ISelection selection) {
StructuredSelection structuredSelection = (StructuredSelection) selection;
IResource resource = (IResource) structuredSelection.getFirstElement();
if (resource != null) {
UMLModel = resource.getName();
projectLocation = resource.getProject().getLocation().toOSString();
Teststory.setProjectLocation(projectLocation);
project = resource.getProject();
}
}
}
Concerning thelogging, the only output I get is the name of the UML file
selected (removed from the posted code above), I don't get any other log
messages, whether if I'm using log4j nor in the eclipse log itself,
which also seems a little strange to me.
Thanks,
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558898 is a reply to message #558895] |
Tue, 14 September 2010 19:31 |
|
hi,
testing with a runtime app i get following in the logs of the host eclipse
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 1.0.0, Build v201008251122
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: src/dummy/test.mwe
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
14.09.2010 21:31:33 org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent checkConfigurationInternal
INFO: No meta models configured, using JavaBeans as default.
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Generator: generating 'dummy::test::main FOR 'ccc'' => D:/runtime-New_configuration/x/src
14.09.2010 21:31:33 org.eclipse.xpand2.Generator invokeInternal2
INFO: Written 1 files to outlet [default](D:/runtime-New_configuration/x/src)
14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
INFO: workflow completed in 16ms!
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558902 is a reply to message #558898] |
Tue, 14 September 2010 19:47 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 09:31 PM, Christian Dietrich wrote:
> hi,
>
> testing with a runtime app i get following in the logs of the host eclipse
>
>
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 1.0.0, Build v201008251122
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow: src/dummy/test.mwe
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: 14.09.2010 21:31:33
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
> checkConfigurationInternal
> INFO: No meta models configured, using JavaBeans as default.
> 14.09.2010 21:31:33
> org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
> INFO: Generator: generating 'dummy::test::main FOR 'ccc'' =>
> D:/runtime-New_configuration/x/src
> 14.09.2010 21:31:33 org.eclipse.xpand2.Generator invokeInternal2
> INFO: Written 1 files to outlet
> [default](D:/runtime-New_configuration/x/src)
> 14.09.2010 21:31:33 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
> INFO: workflow completed in 16ms!
>
>
>
> ~Christian
Hi,
ok, now it becomes really strange. What I did was creating a new XPand
project with the wizard, adding your example and starting an instance of
eclipse. However, I don't get any log in the host eclipse. Do I have to
set up anything for that i get the log? I think I've got my wires
crossed...don't have any clue what to do.
Again, thanks for your help,
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558905 is a reply to message #558902] |
Tue, 14 September 2010 19:57 |
|
hi,
no the logging should work out of the box.
here is my manifest
Quote: |
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Dummy
Bundle-SymbolicName: dummy;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: dummy.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.emf.mwe.core;bundle-version="1.0.0",
org.apache.commons.logging;bundle-version="1.0.4",
org.eclipse.xpand;bundle-version="1.0.1",
org.eclipse.xtend;bundle-version="1.0.1",
org.antlr.runtime;bundle-version="3.0.0",
org.eclipse.core.resources;bundle-version="3.6.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
the runtime i start with host + workspace bundles.
btw: did you try to use the java debugger to get an idea what happens?
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558917 is a reply to message #558905] |
Tue, 14 September 2010 20:39 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 09:57 PM, Christian Dietrich wrote:
> hi,
>
> no the logging should work out of the box.
>
> here is my manifest
>
> Quote:
>> Manifest-Version: 1.0
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Dummy
>> Bundle-SymbolicName: dummy;singleton:=true
>> Bundle-Version: 1.0.0.qualifier
>> Bundle-Activator: dummy.Activator
>> Require-Bundle: org.eclipse.ui,
>> org.eclipse.core.runtime,
>> org.eclipse.emf.mwe.core;bundle-version="1.0.0",
>> org.apache.commons.logging;bundle-version="1.0.4",
>> org.eclipse.xpand;bundle-version="1.0.1",
>> org.eclipse.xtend;bundle-version="1.0.1",
>> org.antlr.runtime;bundle-version="3.0.0",
>> org.eclipse.core.resources;bundle-version="3.6.0"
>> Bundle-ActivationPolicy: lazy
>> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
>
>
> the runtime i start with host + workspace bundles.
>
> btw: did you try to use the java debugger to get an idea what happens?
>
> ~Christian
hi,
ok, first of all, I don't have Xtend and XPand in versions 1.0.1, only
1.0.0. If I try to update it, the update manager tells me there are no
updates available.
Second, I start the instance the same way like you.
And finally, I don't know if I'm debugging the wrong way, but the editor
in the debug view tells me all the time that it can't find the source of
the classes (WorkflowRunner and the like, which doesn't allow me to
change source attachments). Maybe my eclipse has some major problems.
I'm definitely confused.
philipp
|
|
| | |
Re: Problems integrating generator into eclipse plugin [message #558930 is a reply to message #558922] |
Tue, 14 September 2010 22:25 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/14/2010 10:50 PM, Philipp Zech wrote:
> On 09/14/2010 10:48 PM, Christian Dietrich wrote:
>> Hi,
>>
>> i use the distro available from here:
>> http://xtext.itemis.com/xtext-language-development-framework /language=en/23947/downloads
>>
>>
>>
>> ~Christian
> ok,
>
> i'll try it with that one. thanks for the hint.
>
> philipp
Hi Christian,
with the items distribution of eclipse, your simple example now works!
Also debugging now is possible, I haven't tested my project now, I'll do
it tomorrow, and I'll let you know whether it works or not. If it
doesn't I'll write a new post anyway.
Thanks so far for your help!
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #558932 is a reply to message #558930] |
Tue, 14 September 2010 22:45 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/15/2010 12:25 AM, Philipp Zech wrote:
> On 09/14/2010 10:50 PM, Philipp Zech wrote:
>> On 09/14/2010 10:48 PM, Christian Dietrich wrote:
>>> Hi,
>>>
>>> i use the distro available from here:
>>> http://xtext.itemis.com/xtext-language-development-framework /language=en/23947/downloads
>>>
>>>
>>>
>>>
>>> ~Christian
>> ok,
>>
>> i'll try it with that one. thanks for the hint.
>>
>> philipp
> Hi Christian,
>
> with the items distribution of eclipse, your simple example now works!
> Also debugging now is possible, I haven't tested my project now, I'll do
> it tomorrow, and I'll let you know whether it works or not. If it
> doesn't I'll write a new post anyway.
>
> Thanks so far for your help!
>
> Philipp
Hi again,
the logging still doesn't work.
Philipp
|
|
| | | |
Re: Problems integrating generator into eclipse plugin [message #559037 is a reply to message #558978] |
Wed, 15 September 2010 11:50 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/15/2010 10:38 AM, Christian Dietrich wrote:
> Hi,
>
> so the only possibility for further investigations is debugging.
>
> ~Christian
Hi Christian,
now everything works fine, my code is generated without any errors.
After using the itemis distro I debugged my workflow and realized that
the line
<bean class="org.eclipse.xtend.typesystem.uml2.Setup"
standardUML2Setup="true"/>
caused the workflow to be interrrupted, as "Setup" could no be
instantiated, yet the plugin "org.eclipse.uml2.uml.resources" was on the
classpath.
By mentioning that, may I ask you, what exactly this line in the
workflow causes? So far I haven't found a clear explanation about what's
the effect of this instruction.
Again, thanks for your help and patience!
cheers,
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #559060 is a reply to message #559037] |
Wed, 15 September 2010 13:25 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/15/2010 01:50 PM, Philipp Zech wrote:
> On 09/15/2010 10:38 AM, Christian Dietrich wrote:
>> Hi,
>>
>> so the only possibility for further investigations is debugging.
>>
>> ~Christian
> Hi Christian,
>
>
> now everything works fine, my code is generated without any errors.
> After using the itemis distro I debugged my workflow and realized that
> the line
>
> <bean class="org.eclipse.xtend.typesystem.uml2.Setup"
> standardUML2Setup="true"/>
>
> caused the workflow to be interrrupted, as "Setup" could no be
> instantiated, yet the plugin "org.eclipse.uml2.uml.resources" was on the
> classpath.
>
> By mentioning that, may I ask you, what exactly this line in the
> workflow causes? So far I haven't found a clear explanation about what's
> the effect of this instruction.
>
> Again, thanks for your help and patience!
>
> cheers,
>
> Philipp
Hi again,
now again sth strange happens. In an instance my generator works
smoothly, however as soon as I export the plugin, again nothing is
generated. How can this happen?
Thanks,
Philipp
|
|
| | | | | | | | | |
Re: Problems integrating generator into eclipse plugin [message #559149 is a reply to message #559143] |
Wed, 15 September 2010 18:59 |
|
Hi,
i get this on windows too
i solved it by creating following fragment
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Fragment
Bundle-SymbolicName: org.eclipse.uml2.uml.resources.fragment
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.eclipse.uml2.uml.resources;bundle-version="3.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: metamodels
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
| |
Re: Problems integrating generator into eclipse plugin [message #559155 is a reply to message #559152] |
Wed, 15 September 2010 19:24 |
|
hi,
i ususally add a feature - add there the plugins - and set for the workflow plugin unpack = true
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="test.feature"
label="Feature"
version="1.0.0.qualifier">
<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.emf.mwe.core" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xpand" version="1.0.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtend" version="1.0.1" match="greaterOrEqual"/>
<import plugin="org.antlr.runtime" version="3.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.core.resources" version="3.6.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtend.typesystem.uml2" version="1.0.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.xtend.typesystem.emf" version="1.0.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.mwe.utils" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.apache.commons.logging" version="1.1.1" match="greaterOrEqual"/>
<import plugin="org.eclipse.emf.mwe.activities" version="1.0.0" match="greaterOrEqual"/>
<import plugin="org.eclipse.uml2.uml.resources" version="3.1.0" match="greaterOrEqual"/>
</requires>
<plugin
id="dummy"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.eclipse.uml2.uml.resources.fragment"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
</feature>
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
| | | | | | |
Re: Problems integrating generator into eclipse plugin [message #559402 is a reply to message #559177] |
Thu, 16 September 2010 14:10 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/15/2010 10:29 PM, Philipp Zech wrote:
> On 09/15/2010 10:25 PM, Christian Dietrich wrote:
>> - did you try my stufff that generates from uml::Classes?
>> (uml model created with eclipse)
>> - can you provide your stuff too?
>> - did you drop the stuff in the dropins folder?
>>
>> ~Christian
> hi,
>
> i'm just trying it with your stuff. i'll be back soon.
>
> philipp
Hi christian,
sorry for getting back so late, but I had some problems with my internet
and some stuff to do. I first must admit, that up to now I didn't test
your stuff, but I further investigated my project and I found out that
it leads to a quite curious error:
[ERROR](Element: EXPAND
info::teststories::generator::xpand::Teststory::Teststory FOR model;
Reported by: Generator(StoryGenerator): generating
'info::teststories::generator::xpand::Teststory::Teststory FOR model' =>
/home/c703443/workspace/senseTests/src/info/teststories/sut/ stories)
for the easy of checking I've uploaded my generator plugin and an
according model, which should produce a nearly empty java source file
(just some skeleton code, which will lead to errors on your machine, as
you're missing some libraries and other plugins) to drop.io:
http://drop.io/svbpspf
Maybe you can give me the final hint, why my exported plugin leads to
this error and the generator running inside an instance not. In the
meantime I'll try out your stuff.
Thanks,
Philipp
|
|
|
Re: Problems integrating generator into eclipse plugin [message #559408 is a reply to message #559402] |
Thu, 16 September 2010 14:36 |
Philipp Zech Messages: 96 Registered: July 2009 |
Member |
|
|
On 09/16/2010 04:10 PM, Philipp Zech wrote:
> On 09/15/2010 10:29 PM, Philipp Zech wrote:
>> On 09/15/2010 10:25 PM, Christian Dietrich wrote:
>>> - did you try my stufff that generates from uml::Classes?
>>> (uml model created with eclipse)
>>> - can you provide your stuff too?
>>> - did you drop the stuff in the dropins folder?
>>>
>>> ~Christian
>> hi,
>>
>> i'm just trying it with your stuff. i'll be back soon.
>>
>> philipp
> Hi christian,
>
> sorry for getting back so late, but I had some problems with my internet
> and some stuff to do. I first must admit, that up to now I didn't test
> your stuff, but I further investigated my project and I found out that
> it leads to a quite curious error:
>
> [ERROR](Element: EXPAND
> info::teststories::generator::xpand::Teststory::Teststory FOR model;
> Reported by: Generator(StoryGenerator): generating
> 'info::teststories::generator::xpand::Teststory::Teststory FOR model' =>
> /home/c703443/workspace/senseTests/src/info/teststories/sut/ stories)
>
> for the easy of checking I've uploaded my generator plugin and an
> according model, which should produce a nearly empty java source file
> (just some skeleton code, which will lead to errors on your machine, as
> you're missing some libraries and other plugins) to drop.io:
> http://drop.io/svbpspf
>
> Maybe you can give me the final hint, why my exported plugin leads to
> this error and the generator running inside an instance not. In the
> meantime I'll try out your stuff.
>
> Thanks,
>
> Philipp
sorry, forgot the fragment:
http://drop.io/zqg2bs3
cheers,
philipp
|
|
| | | | |
Re: Problems integrating generator into eclipse plugin [message #559439 is a reply to message #559434] |
Thu, 16 September 2010 15:33 |
|
Hi
i digged a bit more and stumbled over this:
«DEFINE Teststories FOR uml::Package»
«FOREACH (List[uml::Package])ownedElement AS teststory»
«IF teststory.getAppliedStereotype("TTSProfile::Teststory") != null»
«EXPAND Teststory FOR teststory»
«ENDIF»
«ENDFOREACH»
«ENDDEFINE»
but the Teststories package contains only an activity with stereotype Teststory but the template
«DEFINE Teststory FOR uml::Activity»
«ENDDEFINE»
is missing
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
| | | | |
Goto Forum:
Current Time: Tue Sep 17 12:17:56 GMT 2024
Powered by FUDForum. Page generated in 0.32985 seconds
|