@@ -316,6 +316,7 @@ void initLogger() {
316316 static public volatile boolean defaultAutoSaveEnabled = true ;
317317 static public volatile boolean ccTriggerEnabled = false ;
318318 static public volatile boolean importSuggestEnabled = true ;
319+ static public volatile boolean inspectModeHotkeyEnabled = true ;
319320 static public int autoSaveInterval = 3 ; //in minutes
320321
321322
@@ -337,6 +338,7 @@ void initLogger() {
337338 static public final String COMPLETION_PREF = "pdex.completion" ;
338339 static public final String COMPLETION_TRIGGER_PREF = "pdex.completion.trigger" ;
339340 static public final String SUGGEST_IMPORTS_PREF = "pdex.suggest.imports" ;
341+ static public final String INSPECT_MODE_HOTKEY_PREF = "pdex.inspectMode.hotkey" ;
340342
341343// static volatile public boolean enableTweak = false;
342344
@@ -361,6 +363,7 @@ public void loadPreferences() {
361363 defaultAutoSaveEnabled = Preferences .getBoolean (prefDefaultAutoSave );
362364 ccTriggerEnabled = Preferences .getBoolean (COMPLETION_TRIGGER_PREF );
363365 importSuggestEnabled = Preferences .getBoolean (SUGGEST_IMPORTS_PREF );
366+ inspectModeHotkeyEnabled = Preferences .getBoolean (INSPECT_MODE_HOTKEY_PREF );
364367 loadSuggestionsMap ();
365368 }
366369
@@ -379,6 +382,7 @@ public void savePreferences() {
379382 Preferences .setBoolean (prefDefaultAutoSave , defaultAutoSaveEnabled );
380383 Preferences .setBoolean (COMPLETION_TRIGGER_PREF , ccTriggerEnabled );
381384 Preferences .setBoolean (SUGGEST_IMPORTS_PREF , importSuggestEnabled );
385+ Preferences .setBoolean (INSPECT_MODE_HOTKEY_PREF , inspectModeHotkeyEnabled );
382386 }
383387
384388 public void loadSuggestionsMap () {
@@ -449,6 +453,8 @@ public void ensurePrefsExist() {
449453 Preferences .setBoolean (COMPLETION_TRIGGER_PREF , ccTriggerEnabled );
450454 if (Preferences .get (SUGGEST_IMPORTS_PREF ) == null )
451455 Preferences .setBoolean (SUGGEST_IMPORTS_PREF , importSuggestEnabled );
456+ if (Preferences .get (INSPECT_MODE_HOTKEY_PREF ) == null )
457+ Preferences .setBoolean (INSPECT_MODE_HOTKEY_PREF , inspectModeHotkeyEnabled );
452458 }
453459
454460
0 commit comments