@@ -522,6 +522,7 @@ public class Preferences {
522522
523523 public static final String JAVA_JDT_LS_PROTOBUF_SUPPORT_ENABLED = "java.jdt.ls.protobufSupport.enabled" ;
524524 public static final String JAVA_JDT_LS_ANDROID_SUPPORT_ENABLED = "java.jdt.ls.androidSupport.enabled" ;
525+ public static final String JAVA_JDT_LS_ASPECTJ_SUPPORT_ENABLED = "java.jdt.ls.aspectjSupport.enabled" ;
525526 public static final String JAVA_JDT_LS_JAVAC_ENABLED = "java.jdt.ls.javac.enabled" ;
526527
527528 public static final String JAVA_COMPILE_NULLANALYSIS_NONNULL = "java.compile.nullAnalysis.nonnull" ;
@@ -709,6 +710,7 @@ public class Preferences {
709710 private ProjectEncodingMode projectEncoding ;
710711 private boolean avoidVolatileChanges ;
711712 private boolean protobufSupportEnabled ;
713+ private boolean aspectjSupportEnabled ;
712714 private boolean javacEnabled ;
713715 private boolean androidSupportEnabled ;
714716 private List <String > nonnullTypes ;
@@ -1137,6 +1139,7 @@ public Preferences clone() {
11371139 prefs .projectEncoding = this .projectEncoding ;
11381140 prefs .avoidVolatileChanges = this .avoidVolatileChanges ;
11391141 prefs .protobufSupportEnabled = this .protobufSupportEnabled ;
1142+ prefs .aspectjSupportEnabled = this .aspectjSupportEnabled ;
11401143 prefs .javacEnabled = this .javacEnabled ;
11411144 prefs .androidSupportEnabled = this .androidSupportEnabled ;
11421145 prefs .nullAnalysisMode = this .nullAnalysisMode ;
@@ -1753,6 +1756,11 @@ public static Preferences updateFrom(Preferences existing, Map<String, Object> c
17531756 prefs .setProtobufSupportEnabled (protobufSupported );
17541757 }
17551758
1759+ if (getValue (configuration , JAVA_JDT_LS_ASPECTJ_SUPPORT_ENABLED ) != null ) {
1760+ boolean aspectjSupported = getBoolean (configuration , JAVA_JDT_LS_ASPECTJ_SUPPORT_ENABLED , existing .aspectjSupportEnabled );
1761+ prefs .setAspectjSupportEnabled (aspectjSupported );
1762+ }
1763+
17561764 if (getValue (configuration , JAVA_JDT_LS_JAVAC_ENABLED ) != null ) {
17571765 boolean javacEnabled = getBoolean (configuration , JAVA_JDT_LS_JAVAC_ENABLED , existing .javacEnabled );
17581766 prefs .setJavacEnabled (javacEnabled );
@@ -2863,6 +2871,14 @@ public void setProtobufSupportEnabled(boolean protobufSupportEnabled) {
28632871 this .protobufSupportEnabled = protobufSupportEnabled ;
28642872 }
28652873
2874+ public boolean isAspectjSupportEnabled () {
2875+ return aspectjSupportEnabled ;
2876+ }
2877+
2878+ public void setAspectjSupportEnabled (boolean aspectjSupportEnabled ) {
2879+ this .aspectjSupportEnabled = aspectjSupportEnabled ;
2880+ }
2881+
28662882 public boolean isAndroidSupportEnabled () {
28672883 return this .androidSupportEnabled ;
28682884 }
0 commit comments