Пример #1
0
 @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");
 }
Пример #2
0
 private static String valueOf(String name) {
   IPreferenceStore store = RcpActivator.getDefault().getPreferenceStore();
   return store.getString(name);
 }
Пример #3
0
 /**
  * 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();
 }