mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[eclipse/xtext#1282] Update to EMF 2.20: Set GenRuntimeVersion to 2.20 by default
This commit is contained in:
parent
a358326650
commit
9913e888dd
3 changed files with 11 additions and 5 deletions
|
@ -170,12 +170,14 @@ class EMFGeneratorFragment2 extends AbstractXtextGeneratorFragment {
|
|||
@Accessors(PUBLIC_SETTER)
|
||||
boolean suppressLoadInitialization = false
|
||||
|
||||
GenRuntimeVersion emfRuntimeVersion
|
||||
/* Default to 2.20 if available, otherwise #get will return null */
|
||||
GenRuntimeVersion emfRuntimeVersion = GenRuntimeVersion.get(GenRuntimeVersion.EMF220_VALUE)
|
||||
GenJDKLevel jdkLevel = GenJDKLevel.JDK80_LITERAL
|
||||
String rootExtendsClass = 'org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container'
|
||||
|
||||
/**
|
||||
* Sets the target EMF runtime version to generate for to the specified value.
|
||||
* Defaults to 2.20.
|
||||
*/
|
||||
def void setEmfRuntimeVersion(String emfRuntimeVersion) {
|
||||
this.emfRuntimeVersion = GenRuntimeVersion.get(emfRuntimeVersion)
|
||||
|
@ -192,7 +194,7 @@ class EMFGeneratorFragment2 extends AbstractXtextGeneratorFragment {
|
|||
* <li>"JDK70"</li>
|
||||
* <li>"JDK80"</li>
|
||||
* </ul>
|
||||
* The default level is "JDK60".
|
||||
* The default level is "JDK80".
|
||||
*/
|
||||
def void setJdkLevel(String jdkLevel) {
|
||||
this.jdkLevel = GenJDKLevel.getByName(jdkLevel)
|
||||
|
|
|
@ -190,7 +190,10 @@ public class EMFGeneratorFragment2 extends AbstractXtextGeneratorFragment {
|
|||
@Accessors(AccessorType.PUBLIC_SETTER)
|
||||
private boolean suppressLoadInitialization = false;
|
||||
|
||||
private GenRuntimeVersion emfRuntimeVersion;
|
||||
/**
|
||||
* Default to 2.20 if available, otherwise #get will return null
|
||||
*/
|
||||
private GenRuntimeVersion emfRuntimeVersion = GenRuntimeVersion.get(GenRuntimeVersion.EMF220_VALUE);
|
||||
|
||||
private GenJDKLevel jdkLevel = GenJDKLevel.JDK80_LITERAL;
|
||||
|
||||
|
@ -198,6 +201,7 @@ public class EMFGeneratorFragment2 extends AbstractXtextGeneratorFragment {
|
|||
|
||||
/**
|
||||
* Sets the target EMF runtime version to generate for to the specified value.
|
||||
* Defaults to 2.20.
|
||||
*/
|
||||
public void setEmfRuntimeVersion(final String emfRuntimeVersion) {
|
||||
this.emfRuntimeVersion = GenRuntimeVersion.get(emfRuntimeVersion);
|
||||
|
@ -215,7 +219,7 @@ public class EMFGeneratorFragment2 extends AbstractXtextGeneratorFragment {
|
|||
* <li>"JDK70"</li>
|
||||
* <li>"JDK80"</li>
|
||||
* </ul>
|
||||
* The default level is "JDK60".
|
||||
* The default level is "JDK80".
|
||||
*/
|
||||
public void setJdkLevel(final String jdkLevel) {
|
||||
this.jdkLevel = GenJDKLevel.getByName(jdkLevel);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<tycho-version>1.5.1</tycho-version>
|
||||
<root-dir>${basedir}/..</root-dir>
|
||||
<JENKINS_URL>https://ci.eclipse.org/xtext</JENKINS_URL>
|
||||
<upstreamBranch>emf220Update</upstreamBranch>
|
||||
<upstreamBranch>master</upstreamBranch>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
|
Loading…
Reference in a new issue