Пример #1
0
 public void saveBonds(String saveName) {
   if (saveName.equalsIgnoreCase("DELETE")) {
     deleteSavedType("Bonds_");
     return;
   }
   Connections b = new Connections(vwr);
   b.saveName = lastConnections = "Bonds_" + saveName;
   saved.put(b.saveName, b);
 }
Пример #2
0
 public boolean restoreBonds(String saveName) {
   vwr.clearModelDependentObjects();
   String name = (saveName.length() > 0 ? "Bonds_" + saveName : lastConnections);
   Connections c = (Connections) getNoCase(saved, name);
   return (c != null && c.restore());
 }