Home » Modeling » TMF (Xtext) » Disabling the generation of GUI contributions of a parent language
| | |
Re: Disabling the generation of GUI contributions of a parent language [message #798566 is a reply to message #798528] |
Tue, 14 February 2012 21:09 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Depends on what you want to be generated.
For Xtend we have three grammars in the same plug-in and generate only
for one.
Otherwise try
- to remove fragments from the workflow
- not setting the pathUiProject in the workflow (don't remember if that
still works)
Am 14.02.12 21:00, schrieb Zoltan Ujhelyi:
> Hi,
>
> we are developing a family of languages where one language acts as a
> parent language that provides some common language elements, but is
> incapable of describing any concrete model. Similar to Xbase, it acts as
> an abstract base language not intended to instantiate directly.
>
> It works well, however, the mwe workflow generates a lot of GUI stuff
> that is unneeded in our project (e.g. specific editor, preference
> pages). My question is whether is it possible to disable the generation
> of such components while being able to provide a reusable basis for the
> GUI services (e.g. ProposalProvider).
>
> I tried to search for options in the generator fragments, but I did not
> find such option. Am I missing something?
>
> Thank you for your help,
> Zoltán Ujhelyi
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Re: Disabling the generation of GUI contributions of a parent language [message #798590 is a reply to message #798566] |
Tue, 14 February 2012 21:48 |
Zoltan Ujhelyi Messages: 392 Registered: July 2015 |
Senior Member |
|
|
Hi Jan,
thank you for your answer. I tried removing the pathUiProject variable from the workflow, but it does not help: the files for the ui project are generated into the original project.
I assume, instead of Xtend project you meant the Xbase project as only there are; I checked there the plugin.xml_gen file in the ui project, and there are editors generated that is not copied into the plugin.xml file as Christian suggested before.
I think, this means, this functionality is not supported by the generator currently. Then my question is, if I find the time and try to update the generator workflow to add this settings, are you interested in putting it into core Xtext?
Thank you again for the quick answers,
Zoltán
|
|
|
Re: Disabling the generation of GUI contributions of a parent language [message #799931 is a reply to message #798590] |
Thu, 16 February 2012 13:26 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Zoltán,
it should help to remove the ui specific generator fragments from the
workflow for your parent language. Did you try that?
If it does not work, help is welcome. You may want to start a discussion
in a new bugzilla before you submit an actual patch. This would allow to
come up with different approaches to tackle the problem.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 14.02.12 22:48, schrieb Zoltan Ujhelyi:
> Hi Jan,
>
> thank you for your answer. I tried removing the pathUiProject variable
> from the workflow, but it does not help: the files for the ui project
> are generated into the original project.
>
> I assume, instead of Xtend project you meant the Xbase project as only
> there are; I checked there the plugin.xml_gen file in the ui project,
> and there are editors generated that is not copied into the plugin.xml
> file as Christian suggested before.
>
> I think, this means, this functionality is not supported by the
> generator currently. Then my question is, if I find the time and try to
> update the generator workflow to add this settings, are you interested
> in putting it into core Xtext?
>
> Thank you again for the quick answers,
> Zoltán
|
|
| |
Goto Forum:
Current Time: Thu Mar 28 09:24:28 GMT 2024
Powered by FUDForum. Page generated in 0.04221 seconds
|