option added to generate workspace symbols from spring index on demand
This commit is contained in:
@@ -54,4 +54,6 @@ public class Constants {
|
||||
|
||||
public static final String PREF_BEANS_STRUCTURE_TREE = "boot-java.java.beans-structure-tree";
|
||||
|
||||
public static final String PREF_SYMBOLS_FROM_NEW_INDEX = "boot-java.java.symbols-from-new-index";
|
||||
|
||||
}
|
||||
|
||||
@@ -201,6 +201,7 @@ public class DelegatingStreamConnectionProvider implements StreamConnectionProvi
|
||||
javaCompletionSettings.put("inject-bean", preferenceStore.getBoolean(Constants.PREF_COMPLETION_JAVA_INJECT_BEAN));
|
||||
|
||||
javaSettings.put("beans-structure-tree", preferenceStore.getBoolean(Constants.PREF_BEANS_STRUCTURE_TREE));
|
||||
javaSettings.put("symbols-from-new-index", preferenceStore.getBoolean(Constants.PREF_SYMBOLS_FROM_NEW_INDEX));
|
||||
javaSettings.put("completions", javaCompletionSettings);
|
||||
javaSettings.put("reconcilers", preferenceStore.getBoolean(Constants.PREF_JAVA_RECONCILE));
|
||||
|
||||
|
||||
@@ -57,7 +57,10 @@ public class BootJavaPreferencesPage extends FieldEditorPreferencePage implement
|
||||
addField(new BooleanFieldEditor(Constants.PREF_COMPLETION_JAVA_INJECT_BEAN, "Inject Bean completion proposals in Java editor", fieldEditorParent));
|
||||
|
||||
// Experimental Beans tree
|
||||
addField(new BooleanFieldEditor(Constants.PREF_BEANS_STRUCTURE_TREE, "Beans structure tree in the outline view", fieldEditorParent));
|
||||
addField(new BooleanFieldEditor(Constants.PREF_BEANS_STRUCTURE_TREE, "Beans structure tree in the outline view (experimental)", fieldEditorParent));
|
||||
|
||||
// Experimental symbols from new index
|
||||
addField(new BooleanFieldEditor(Constants.PREF_SYMBOLS_FROM_NEW_INDEX, "Generate workspace symbols from index (experimental)", fieldEditorParent));
|
||||
|
||||
Composite c = new Composite(fieldEditorParent, SWT.NONE);
|
||||
GridDataFactory.fillDefaults().grab(true, false).applyTo(c);
|
||||
|
||||
@@ -59,18 +59,13 @@ public class PrefsInitializer extends AbstractPreferenceInitializer {
|
||||
}));
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_MODULITH, true);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_LIVE_INFORMATION_ALL_JVM_PROCESSES, false);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_JPQL, true);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_PROPS_COMPLETIONS_ELIDE_PREFIX, false);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_CRON_INLAY_HINTS, true);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_COMPLETION_JAVA_INJECT_BEAN, true);
|
||||
|
||||
preferenceStore.setDefault(Constants.PREF_BEANS_STRUCTURE_TREE, false);
|
||||
preferenceStore.setDefault(Constants.PREF_SYMBOLS_FROM_NEW_INDEX, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user