Exemplo n.º 1
0
 static {
   try {
     CCWPlugin.getClojureOSGi()
         .require(CCWPlugin.getDefault().getBundle(), PareditAutoEditStrategyImpl_NS);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
Exemplo n.º 2
0
 /**
  * Create a preference store combined from the Clojure, the EditorsUI and the PlatformUI
  * preference stores to inherit all the default text editor settings from the Eclipse preferences.
  *
  * <p>Beware, the combined preference store can only be instanciated from the UI Thread.
  *
  * @return the combined preference store.
  */
 public IPreferenceStore getCombinedPreferenceStore() {
   if (prefs == null) {
     prefs =
         new ChainedPreferenceStore(
             new IPreferenceStore[] {
               CCWPlugin.getDefault().getPreferenceStore(),
               EditorsUI.getPreferenceStore(),
               PlatformUI.getPreferenceStore()
             });
   }
   return prefs;
 }
Exemplo n.º 3
0
 public static boolean isAutoReloadOnStartupSaveEnabled() {
   return CCWPlugin.getDefault()
       .getPreferenceStore()
       .getBoolean(PreferenceConstants.CCW_GENERAL_AUTO_RELOAD_ON_STARTUP_SAVE);
 }