Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346092 - [generator] Add option to generate Xtend stubs instead of Java stubs
Summary: [generator] Add option to generate Xtend stubs instead of Java stubs
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: M4   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 346248 349585 383428 385830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-17 10:02 EDT by Karsten Thoms CLA
Modified: 2017-10-31 10:59 EDT (History)
13 users (show)

See Also:
sven.efftinge: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.