Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoopur Gupta2019-02-07 09:57:06 +0000
committerNoopur Gupta2019-02-07 09:57:06 +0000
commit2c4bb4c77bcec2db87c696b04bea289c6172c9b4 (patch)
tree4b45a6d4c58ec20344f0c69b78c710b80b42fb02
parent771245306eb6cc179f9449d3295b8104dd973fc4 (diff)
downloadeclipse.jdt.ui-2c4bb4c77bcec2db87c696b04bea289c6172c9b4.tar.gz
eclipse.jdt.ui-2c4bb4c77bcec2db87c696b04bea289c6172c9b4.tar.xz
eclipse.jdt.ui-2c4bb4c77bcec2db87c696b04bea289c6172c9b4.zip
Added new AST level Change-Id: I939ce75c763215874c0af3afdb832c220dfe98c9
-rw-r--r--org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
index fb8c24bee8..61dc7f2321 100644
--- a/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
+++ b/org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTView.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -7,6 +7,10 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
+ *
+ * This is an implementation of an early-draft specification developed under the Java
+ * Community Process (JCP) and is made available for testing and evaluation purposes
+ * only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
@@ -128,8 +132,14 @@ import org.eclipse.jdt.ui.JavaUI;
public class ASTView extends ViewPart implements IShowInSource, IShowInTargetList {
- static final int JLS_LATEST= AST.JLS11;
+ static final int JLS_LATEST= AST.JLS12;
+ private static final int JLS12= AST.JLS12;
+
+ /**
+ * @deprecated to get rid of deprecation warnings in code
+ */
+ @Deprecated
private static final int JLS11= AST.JLS11;
/**
@@ -469,6 +479,7 @@ public class ASTView extends ViewPart implements IShowInSource, IShowInTargetLis
case JLS9:
case JLS10:
case JLS11:
+ case JLS12:
fCurrentASTLevel= level;
}
} catch (NumberFormatException e) {
@@ -1098,6 +1109,7 @@ public class ASTView extends ViewPart implements IShowInSource, IShowInTargetLis
new ASTLevelToggle("AST Level &9 (9)", JLS9), //$NON-NLS-1$
new ASTLevelToggle("AST Level 1&0 (10)", JLS10), //$NON-NLS-1$
new ASTLevelToggle("AST Level 1&1 (11)", JLS11), //$NON-NLS-1$
+ new ASTLevelToggle("AST Level 1&2 (12)", JLS12), //$NON-NLS-1$
};
fAddToTrayAction= new Action() {

Back to the top