Examples of postEdit()


Examples of javax.swing.undo.UndoableEditSupport.postEdit()

    dependency.setDependencyType(type);
    dependency.setDirty(true);

    UndoableEditSupport undoableEditSupport=getUndoableEditSupport(dependency);
    if (undoableEditSupport!=null&&!(eventSource instanceof UndoableEdit)){
      undoableEditSupport.postEdit(new DependencySetFieldsEdit(dependency,oldLag,oldType,eventSource));
    }

  }

  public void update(Dependency dependency, Object eventSource) {
View Full Code Here

Examples of javax.swing.undo.UndoableEditSupport.postEdit()

            add(parent,child,position,EVENT);

            if ((objectEvent.getInfo()==null||(objectEvent.getInfo()!=null&&objectEvent.getInfo().isUndo()))&& dataFactory instanceof Project){
              UndoableEditSupport undoableEditSupport=getUndoableEditSupport();
              if (undoableEditSupport!=null){
                undoableEditSupport.postEdit(new AssignmentCreationEdit(child));
              }
            }

          }
View Full Code Here

Examples of javax.swing.undo.UndoableEditSupport.postEdit()

          if (node != null){
            remove(node,EVENT,false,false);
            if ((objectEvent.getInfo()==null||(objectEvent.getInfo()!=null&&objectEvent.getInfo().isUndo()))&& dataFactory instanceof Project){
              UndoableEditSupport undoableEditSupport=getUndoableEditSupport();
              if (undoableEditSupport!=null){
                undoableEditSupport.postEdit(new AssignmentDeletionEdit(node));
              }
            }
          }

View Full Code Here

Examples of javax.swing.undo.UndoableEditSupport.postEdit()

    unsaved = false;
    CalendarService service=CalendarService.getInstance();
    WorkingCalendar wc=form.getCalendar();
    UndoableEditSupport undoableEditSupport=undoController.getEditSupport();
    if (undoableEditSupport!=null){
      undoableEditSupport.postEdit(new CalendarEdit(editedCalendar,wc));
    }

    service.assignCalendar(editedCalendar,wc);
    service.saveAndUpdate(editedCalendar);
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.postEdit()

                    incrementProgress();
                    setStatus(GemCutterMessages.getString("SuccessStatus"));
   
                    UndoableRefactoringEdit addTypeDeclsEdit = new UndoableRefactoringEdit(GemCutter.this, typeDeclsAdder, GemCutterMessages.getString("AddTypedeclsPresentationName"));
                    undoableEditSupport.setEditName(addTypeDeclsEdit.getPresentationName());
                    undoableEditSupport.postEdit(addTypeDeclsEdit);
           
                    // End the update.
                    undoableEditSupport.endUpdate();
                   
                    // Make sure that the dialog is active for long enough to be visible
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.postEdit()

                    incrementProgress();
                    setStatus(GemCutterMessages.getString("SuccessStatus"));
   
                    UndoableRefactoringEdit cleanImportsEdit = new UndoableRefactoringEdit(GemCutter.this, importCleaner, GemCutterMessages.getString("CleanImportsPresentationName"));
                    undoableEditSupport.setEditName(cleanImportsEdit.getPresentationName());
                    undoableEditSupport.postEdit(cleanImportsEdit);
           
                    // End the update.
                    undoableEditSupport.endUpdate();
                   
                    // Make sure that the dialog is active for long enough to be visible
View Full Code Here

Examples of org.openscience.jchempaint.controller.undoredo.UndoRedoHandler.postEdit()

        UndoRedoHandler undoRedoHandler= chemPaintPanel.get2DHub().getUndoRedoHandler();
       
        if (undoRedoFactory!=null) {
            IUndoRedoable undoredo = undoRedoFactory.getAddAtomsAndBondsEdit(chemPaintPanel.get2DHub().getIChemModel(),
            molecule, null, "Paste", chemPaintPanel.get2DHub());
            undoRedoHandler.postEdit(undoredo);
        }
       
        chemPaintPanel.getChemModel().setMoleculeSet(moleculeSet);
  chemPaintPanel.updateUndoRedoControls();
        chemPaintPanel.get2DHub().updateView();
View Full Code Here

Examples of org.openscience.jchempaint.controller.undoredo.UndoRedoHandler.postEdit()

      IUndoRedoable undoredo = factory.getMergeMoleculesEdit(mergedAtoms,
          containers, droppedContainers, removedBondss,
          bondsWithReplacedAtoms, movedDistance, mergedPartnerAtoms,
          moveundoredo, oldRGroupHash, newRGroupHash,
          "Move and merge atoms", this);
      handler.postEdit(undoredo);

    }

    model.getMerge().clear();
    structureChanged();
View Full Code Here

Examples of org.openscience.jchempaint.controller.undoredo.UndoRedoHandler.postEdit()

            IUndoRedoFactory factory = chemModelRelay.getUndoRedoFactory();
            UndoRedoHandler handler = chemModelRelay.getUndoRedoHandler();
            if (factory != null && handler != null) {
                IUndoRedoable undoredo = factory.getChangeCoordsEdit(
                        atomCoordsMap, "Rotation");
                handler.postEdit(undoredo);
            }
        }
    }

   
View Full Code Here

Examples of org.openscience.jchempaint.controller.undoredo.UndoRedoHandler.postEdit()

        }

        if (factory != null && handler != null) {
            IUndoRedoable undoredo = chemModelRelay.getUndoRedoFactory().getAddAtomsAndBondsEdit
            (chemModelRelay.getIChemModel(), containerForUndoRedo, removedContainer, "Add Bond",chemModelRelay);
            handler.postEdit(undoredo);
        }
        chemModelRelay.updateView();
   
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.