Esempio n. 1
0
 public void splitObjects() {
   Object[] os = this.list.getSelectedValues();
   if (os.length == 0) return;
   Set<ObjectStructure> channels = new HashSet<ObjectStructure>();
   for (Object o : os) {
     if (split((Object3DGui) o)) channels.add(((Object3DGui) o).getChannel());
   }
   for (ObjectStructure o : channels) o.saveOutput();
   saveOptions();
 }
Esempio n. 2
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();
   }
 }