Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [XText] Custom fragments
[XText] Custom fragments [message #62880] Wed, 22 July 2009 15:39 Go to next message
Eclipse UserFriend
Hi,

Let me apologize upfront for asking a question that might not belong to
this group.

I have implemented a custom fragment that creates a builder, nature and a
menu item (to add the nature) to an XText project. The builder is modeled
after the generator project created by XText, so it includes a workflow
file, xpand and xtend templates.

However, running the workflow programmatically requires access to Workflow
and WorkflowFactory classes from MWE which unfortunately belong to
restricted API. Can any one suggest an alternative. Having the MWE file
accessible to the user provides the most flexibility and I really prefer
it.

Thanks and Regards
KD
Re: [XText] Custom fragments [message #62887 is a reply to message #62880] Wed, 22 July 2009 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi KD,

please try

new WorkflowFacade("mwe-file").run();

Regards,
Sebastian

--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 22.07.2009 21:39 Uhr, schrieb KD:
> Hi,
>
> Let me apologize upfront for asking a question that might not belong to
> this group.
>
> I have implemented a custom fragment that creates a builder, nature and
> a menu item (to add the nature) to an XText project. The builder is
> modeled after the generator project created by XText, so it includes a
> workflow file, xpand and xtend templates.
>
> However, running the workflow programmatically requires access to
> Workflow and WorkflowFactory classes from MWE which unfortunately belong
> to restricted API. Can any one suggest an alternative. Having the MWE
> file accessible to the user provides the most flexibility and I really
> prefer it.
>
> Thanks and Regards
> KD
>
>
Re: [XText] Custom fragments [message #62893 is a reply to message #62887] Wed, 22 July 2009 16:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sebastian,

Unfortunately this doesn't work. The file is within a plugin and looks
like both WorkflowRunner and WorkflowFacade expects a regular file name.

-- KD
Re: [XText] Custom fragments [message #62896 is a reply to message #62893] Thu, 23 July 2009 02:07 Go to previous message
Eclipse UserFriend
KD wrote:

> Hi Sebastian,

> Unfortunately this doesn't work. The file is within a plugin and looks
> like both WorkflowRunner and WorkflowFacade expects a regular file name.

Thanks. It works by sending the classpath to the file. Seems to be some
silly mistake when I tried it out first time.

-- KD
Previous Topic:[Xtext] Parsing example
Next Topic:[XText] Generator properties
Goto Forum:
  


Current Time: Mon Jul 14 14:08:29 EDT 2025

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

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

Back to the top