@Override public void initializeDefaultPreferences() { IPreferenceStore store = RcpActivator.getDefault().getPreferenceStore(); store.setDefault(PASSWORD, ""); store.setDefault(USER, "user"); store.setDefault(URL, "http://host-adress.web/path/resource"); }
private static String valueOf(String name) { IPreferenceStore store = RcpActivator.getDefault().getPreferenceStore(); return store.getString(name); }
/** * Returns the version of the openLCA application. If there is a version defined in the ini-file * (-olcaVersion argument) this is returned. Otherwise the version of the application bundle is * returned. */ public static String getVersion() { String version = CommandArgument.VERSION.getValue(); if (version != null) return version; return RcpActivator.getDefault().getBundle().getVersion().toString(); }