Package javax.swing.undo

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


            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

          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

    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

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.