Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346092

Summary: [generator] Add option to generate Xtend stubs instead of Java stubs
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: alexey.v.romanov, btickets, Holger.Schill, jan, joerg83reichert, lorenzo.bettini, mail, moritz.eysholdt, peter, sebastian.zarnekow, sven.efftinge, tmf.xtext-inbox, vladdu55
Version: 2.0.0Flags: sven.efftinge: kepler+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-05-17 10:02:24 EDT
For some fragments, e.g. the AbstractScopingFragment, there should be a flag that the produced stubs should be Xtend classes instead of Java classes.
Comment 1 Sven Efftinge CLA 2011-05-18 10:02:23 EDT
*** Bug 346248 has been marked as a duplicate of this bug. ***
Comment 2 Sven Efftinge CLA 2011-05-18 10:02:43 EDT
We should have the option to generate a java stub, an xtend stub or no stub at all for every generator fragment producing stubs.
Comment 3 Sebastian Zarnekow CLA 2012-06-28 08:00:42 EDT
*** Bug 383428 has been marked as a duplicate of this bug. ***
Comment 4 Holger Schill CLA 2012-08-09 09:01:50 EDT
*** Bug 385830 has been marked as a duplicate of this bug. ***
Comment 5 Sven Efftinge CLA 2012-11-21 08:41:07 EST
*** Bug 349585 has been marked as a duplicate of this bug. ***
Comment 6 Jan Koehnlein CLA 2012-12-04 08:39:30 EST
I gave the generator a bit of a refactoring.

- Introduced a common interface for fragments generating stubs
- Deprecated methods that did not match the new naming convention
- Added Xtend generation to all fragments generating stubs
- Re-implemented fragments with "Java" in their name in entirely Xtend
- Generated MWE workflows now use auto-inject
- Changed the default settings for newly generated Xtext projects to generate Xtend stubs only for provisional profile, stable profile and ecore2xtext. FOr existing projects there are no changes.

I did add Java generation to fragments that already generate Xtend, e.g. the GeneratorFragment. The modules and standalone setups also stay Java.

We can now also disable generation of stubs entirely by putting 
  var generateStubs = false
in the var section of the workflow. This property is 'true' by default to not break existing clients. 
  var generateXtendStubs = true
will generate Xtend stubs only.
Comment 7 Eclipse Webmaster CLA 2017-10-31 10:48:08 EDT
Requested via bug 522520.

-M.
Comment 8 Eclipse Webmaster CLA 2017-10-31 10:59:09 EDT
Requested via bug 522520.

-M.