Example #1
0
  /*
   * (non-Javadoc)
   * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    logger = Platform.getLog(this.getBundle());
    IPreferenceStore store = getPreferenceStore();
    HybridToolsPreferences.init(store);
    store.addPropertyChangeListener(
        new IPropertyChangeListener() {

          @Override
          public void propertyChange(PropertyChangeEvent event) {
            HybridToolsPreferences.getPrefs().loadValues(event);
          }
        });
    HybridToolsPreferences.getPrefs().loadValues();
  }
 public static void init(IPreferenceStore store) {
   thePreferences.kernelStore = store;
 }