Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Porting M2T code generator from OAW to EMFT
Porting M2T code generator from OAW to EMFT [message #621086] Sun, 05 July 2009 08:06
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
Hi,

recently I have developed a code generator as an eclipse plugin,
generatiing Java source out of UML ActivityDiagrams (based on OAW and
using an UML profile for custom extensions). Now I'm trying to remove
the OAW dependencies by using the eclipse own MWE, included in the EMFT
project. Unfortunately, I'm facing some problems by porting the workflow
file itself, in more detail, OAW allows to specify an own UML profile in
the workflow, for example somtehing like this:

...
<component id="StoryGenerator" class="oaw.xpand2.Generator">
<metaModel class="oaw.type.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<metaModel class="oaw.uml2.UML2MetaModel"/>
<metaModel id="profile"
class="oaw.uml2.profile.ProfileMetaModel">
<profile
value="info/teststories/generator/profile/tts.profile.uml"/ > <- can, or
must this be done if using MWE?
</metaModel>
<expand
value="info::teststories::generator::xpand::Teststory::Teststory FOR
model"/>
<outlet path="${projectLocation}/src/info/teststories/sut/stories"/ >
<beautifier class="oaw.xpand2.output.JavaBeautifier"/>
</component>
...

Above is only shown an excerpt of the workflow for OAW (running withoug
any problems under OAW), where the profile for the diagrams is set I'm
using to process it properly.

The second problem I'm facing is, currently the workflow is called out
of an ActionDelegate inside an eclipse plugin, using OAW's
WorkflowRunner class, which more or less looks like:

...
WorkflowRunner runner = new WorkflowRunner();
runner.run(workflowFile, new NullProgressMonitor(), properties,
slotMap);
...

Again, my question is, can this be done using MWE?
I'm sure it can be done somehow, but up to now I have not been able to
find an according class in the EMFT, especially the MWE API.

Thanks a lot for all the help in advance!

Cheers,

Philipp
Previous Topic:[EMF Compare] EPatch xtext editor
Next Topic:Element referencing method used by Epatch
Goto Forum:
  


Current Time: Mon Feb 26 01:55:54 GMT 2024

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

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

Back to the top