Beispiel #1
0
 public void shift() {
   boolean change = false;
   for (ObjectStructure as : currentChannels) {
     if (as instanceof Structure) {
       boolean c = ((Structure) as).shiftObjectIndexes(true);
       if (c) {
         change = true;
         Core.mongoConnector.removeStructureMeasurements(as.getId(), as.getIdx());
       }
     } else if (as instanceof Field) {
       if (((Field) as).shiftObjectIndexes()) {
         if (autoSave) as.saveOutput();
         change = true;
       }
     }
   }
   if (change) {
     this.populateObjects();
   }
 }