Пример #1
0
 public void readFromWorkspace(WbWorkspace w, int index) {
   String prefix = getWorkspacePrefix(index);
   if (initialized) {
     readSettings(w.getSettings(), prefix);
   } else {
     workspaceProperties = new FilteredProperties(w.getSettings(), prefix);
   }
 }
Пример #2
0
 public void saveToWorkspace(WbWorkspace w, int index) {
   String prefix = getWorkspacePrefix(index);
   if (initialized) {
     storeSettings(w.getSettings(), prefix);
     findPanel.saveSettings(w.getSettings(), prefix);
   } else if (workspaceProperties != null) {
     workspaceProperties.copyTo(w.getSettings(), prefix);
   }
 }