Bug 531142: [10] Switch ASTs to JLS10 for ASTView
Change-Id: I85ff74db73a20904c58caa11d4bcf5269d1b6aec
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 f1ca7c6..94ba591 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,10 +1,14 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
+ * 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
*******************************************************************************/
@@ -126,8 +130,14 @@
public class ASTView extends ViewPart implements IShowInSource, IShowInTargetList {
- static final int JLS_LATEST= AST.JLS9;
+ static final int JLS_LATEST= AST.JLS10;
+ private static final int JLS10= AST.JLS10;
+
+ /**
+ * @deprecated to get rid of deprecation warnings in code
+ */
+ @Deprecated
private static final int JLS9= AST.JLS9;
/**
@@ -453,6 +463,7 @@
case JLS4:
case JLS8:
case JLS9:
+ case JLS10:
fCurrentASTLevel= level;
}
} catch (NumberFormatException e) {
@@ -1080,6 +1091,7 @@
new ASTLevelToggle("AST Level &4 (1.7)", JLS4), //$NON-NLS-1$
new ASTLevelToggle("AST Level &8 (1.8)", JLS8), //$NON-NLS-1$
new ASTLevelToggle("AST Level &9 (9)", JLS9), //$NON-NLS-1$
+ new ASTLevelToggle("AST Level 1&0 (10)", JLS10), //$NON-NLS-1$
};
fAddToTrayAction= new Action() {