static { try { CCWPlugin.getClojureOSGi() .require(CCWPlugin.getDefault().getBundle(), PareditAutoEditStrategyImpl_NS); } catch (Exception e) { throw new RuntimeException(e); } }
/** * 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; }
public static boolean isAutoReloadOnStartupSaveEnabled() { return CCWPlugin.getDefault() .getPreferenceStore() .getBoolean(PreferenceConstants.CCW_GENERAL_AUTO_RELOAD_ON_STARTUP_SAVE); }