Exemplo n.º 1
0
 static synchronized void setpref(String prefname, String val) {
   try {
     if (prefs == null) prefs = Preferences.userNodeForPackage(Utils.class);
     prefs.put(prefname, val);
   } catch (SecurityException e) {
   }
 }
Exemplo n.º 2
0
 @Override
 public void setURI(URI newValue) {
   URI oldValue = uri;
   uri = newValue;
   if (preferences != null && newValue != null) {
     preferences.put("projectFile", newValue.toString());
   }
   firePropertyChange(URI_PROPERTY, oldValue, newValue);
 }