Examples of postEdit()


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

    // Start a compound edit that deletes items and changes presentation name
    UndoableEditSupport undoSupport = getUndoableEditSupport();
    undoSupport.beginUpdate();
    getPlanController().deleteItems(items);
    // Add a undoable edit to change presentation name
    undoSupport.postEdit(new AbstractUndoableEdit() {
        @Override
        public String getPresentationName() {
          return preferences.getLocalizedString(HomeController.class, "undoCutName");
        }     
      });
View Full Code Here

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

      getPlanController().addDimensionLines(Home.getDimensionLinesSubList(items));
      getPlanController().addLabels(Home.getLabelsSubList(items));
      this.home.setSelectedItems(items);
 
      // Add a undoable edit that will select all the items at redo
      undoSupport.postEdit(new AbstractUndoableEdit() {     
          @Override
          public void redo() throws CannotRedoException {
            super.redo();
            home.setSelectedItems(items);
          }
View Full Code Here

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

    if (importedFurniture.size() > 0) {
      getPlanController().moveItems(importedFurniture, dx, dy);
      this.home.setSelectedItems(importedFurniture);
     
      // Add a undoable edit that will select the imported furniture at redo
      undoSupport.postEdit(new AbstractUndoableEdit() {     
          @Override
          public void redo() throws CannotRedoException {
            super.redo();
            home.setSelectedItems(importedFurniture);
          }
View Full Code Here

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

    fireBaselineChanged(this, null, (Integer)snapshotId,true);

    if (undo){
      UndoableEditSupport undoableEditSupport=getUndoController().getEditSupport();
      if (undoableEditSupport!=null){
        undoableEditSupport.postEdit(new SaveSnapshotEdit(this,snapshotId,entireProject,selection));
      }
    }

  }
View Full Code Here

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

    fireBaselineChanged(this, null, (Integer)snapshotId,false);

    if (foundSnapshot[0]){
      UndoableEditSupport undoableEditSupport=getUndoController().getEditSupport();
      if (undoableEditSupport!=null){
        undoableEditSupport.postEdit(new ClearSnapshotEdit(this,snapshotId,entireProject,selection,snapshotDetails));
      }
    }

  }
  /**
 
View Full Code Here

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

    fireBaselineChanged(this, null, (Integer)snapshotId,true);

    if (undo){
      UndoableEditSupport undoableEditSupport=getUndoController().getEditSupport();
      if (undoableEditSupport!=null){
        undoableEditSupport.postEdit(new SaveSnapshotEdit(this,snapshotId,entireProject,selection));
      }
    }

  }
View Full Code Here

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

    fireBaselineChanged(this, null, (Integer)snapshotId,false);

    if (foundSnapshot[0]){
      UndoableEditSupport undoableEditSupport=getUndoController().getEditSupport();
      if (undoableEditSupport!=null){
        undoableEditSupport.postEdit(new ClearSnapshotEdit(this,snapshotId,entireProject,selection,snapshotDetails));
      }
    }

  }
  /**
 
View Full Code Here

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

            field.setText(objectRef,""+newValue,context);
          else   
            field.setValue(objectRef,source,newValue,context);
          UndoableEditSupport undoableEditSupport=objectRef.getDataFactory().getUndoController().getEditSupport();
          if (undoableEditSupport!=null){
            undoableEditSupport.postEdit(new FieldEdit(field,objectRef,value,oldValue,this,context));
          }
        }
       
      }
    } catch (FieldParseException e) {
View Full Code Here

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

    }
    dependency.setDirty(true);

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

  public void fireTaskPredecessors(Collection list) {
    Iterator i = list.iterator();
View Full Code Here

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

    if (eventSource != null)
      dependency.fireDeleteEvent(eventSource);

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


  }
  public void setFields(Dependency dependency, long lag, int type,Object eventSource) throws InvalidAssociationException{
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.