Package javax.swing.undo

Examples of javax.swing.undo.CompoundEdit.end()


            SceneGraphObject replaced=addSceneGraphObject((SceneGraphObject)cn.getGraphObject());
            compoundEdit.addEdit(new AddEdit(this,
                    (SceneGraphObject)cn.getGraphObject(),
                    replaced));
        }
        compoundEdit.end();
        getTree().getUndoableEditListener().undoableEditHappened(
                new UndoableEditEvent(this, compoundEdit));
    }
   
    public boolean canPaste(){
View Full Code Here


           (panel, base,
            subject));

      base.removeString(subject.getId());
        }
        ce.end();
        panel.undoManager.addEdit(ce);

        //table.revalidate();
        refreshTable();
        if (base.getStringCount() > 0)
View Full Code Here

     
      edit  = new BasicCompoundEdit();
      if( deselect ) edit.addEdit( TimelineVisualEdit.select( this, doc, new Span() ).perform() );
      pos    = (long) (selSpan.getStart() + selSpan.getLength() * weight + 0.5);
      edit.addEdit( TimelineVisualEdit.position( this, doc, pos ).perform() );
      edit.end();
      doc.getUndoManager().addEdit( edit );
    }
  } // class actionSelToPosClass
}
View Full Code Here

    edit = new CompoundEdit();
    edit.addEdit(new AbstractUndoableEdit());
    harness.check(!edit.canRedo());

    // Check #2.
    edit.end();
    harness.check(!edit.canRedo());

    // Check #3.
    edit.undo();
    harness.check(edit.canRedo());
View Full Code Here

    // Check #1.
    edit = new CompoundEdit();
    harness.check(edit.isInProgress());

    // Check #2.
    edit.end();
    harness.check(!edit.isInProgress());
  }
}
View Full Code Here

    edit = new CompoundEdit();
    edit.addEdit(new AbstractUndoableEdit());
    harness.check(!edit.canUndo());

    // Check #2.
    edit.end();
    harness.check(edit.canUndo());

    // Check #3.
    edit.undo();
    harness.check(!edit.canUndo());
View Full Code Here

          if( !timelineVis.contains( 0 )) {
            final CompoundEdit ce  = new BasicCompoundEdit();
            ce.addEdit( edit );
            newSpan  = new Span( 0, timelineVis.getLength() );
            ce.addEdit( TimelineVisualEdit.scroll( this, doc, newSpan ).perform() );
            ce.end();
            edit  = ce;
          }
        }
        break;
       
View Full Code Here

          if( !timelineVis.contains( 0 )) {
            final CompoundEdit ce  = new BasicCompoundEdit();
            ce.addEdit( edit );
            newSpan  = new Span( 0, timelineVis.getLength() );
            ce.addEdit( TimelineVisualEdit.scroll( this, doc, newSpan ).perform() );
            ce.end();
            edit  = ce;
          }
        }
        break;
       
View Full Code Here

     
      edit  = new BasicCompoundEdit();
      if( deselect ) edit.addEdit( TimelineVisualEdit.select( this, doc, new Span() ).perform() );
      pos    = (long) (selSpan.getStart() + selSpan.getLength() * weight + 0.5);
      edit.addEdit( TimelineVisualEdit.position( this, doc, pos ).perform() );
      edit.end();
      doc.getUndoManager().addEdit( edit );
    }
  } // class actionSelToPosClass
}
View Full Code Here

                CompoundEdit compoundEdit = new RemoveCompoundUndoableEdit();

                for (Object path : paths) {
                    compoundEdit.addEdit(removeLastPathComponent(path));
                }
                compoundEdit.end();

                application.getUndoManager().addEdit(compoundEdit);

            }
        }
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.