Examples of undo()


Examples of org.eclipse.emf.common.command.CommandStack.undo()

  @Execute
  public void undo() {
    CommandStack commandStack = contactsManager.getEditingDomain().getCommandStack();
    if (commandStack.canUndo())
      commandStack.undo();
  }
 
}
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.undo.IStructuredTextUndoManager.undo()

   */
  public void run() {
    IStructuredTextUndoManager undoManager = _designer.getHTMLEditor()
        .getModel().getUndoManager();
    if (_undo) {
      undoManager.undo(_designer);
    } else {
      undoManager.redo(_designer);
    }
  }

View Full Code Here

Examples of org.enhydra.jawe.base.controller.JaWEController.undo()

        setEnabled(um.canUndo());
    }

    public void actionPerformed(ActionEvent e) {
        JaWEController jc = JaWEManager.getInstance().getJaWEController();
        jc.undo();


    }
}
View Full Code Here

Examples of org.ethereum.trie.TrieImpl.undo()

        trie.sync();

        trie.update("dog", "puppy");
        assertEquals("05ae693aac2107336a79309e0c60b24a7aac6aa3edecaef593921500d33c63c4", Hex.toHexString(trie.getRootHash()));

        trie.undo();
        assertEquals("11a0327cfcc5b7689b6b6d727e1f5f8846c1137caaa9fc871ba31b7cce1b703e", Hex.toHexString(trie.getRootHash()));
    }

    // Using tests from: https://github.com/ethereum/tests/blob/master/trietest.json
View Full Code Here

Examples of org.exist.storage.journal.Loggable.undo()

                        }

                        // undo the log entry if it belongs to an uncommitted transaction
                        if (runningTxns.get(next.getTransactionId()) != null) {
    //          LOG.debug("Undo: " + next.dump());
                            next.undo();
                        }
                    }
                } catch (final Exception e) {
                    LOG.warn("Exception caught while undoing dirty transactions. Remaining transactions " +
                            "to be undone: " + runningTxns.size() + ". Aborting recovery to avoid possible damage. " +
View Full Code Here

Examples of org.freeplane.core.undo.IUndoHandler.undo()

  }

  public void undo() {
    final MapModel map = Controller.getCurrentController().getMap();
    final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
    undoHandler.undo();
  }

  public void redo() {
    final MapModel map = Controller.getCurrentController().getMap();
    final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
View Full Code Here

Examples of org.freeplane.features.mode.mindmapmode.MModeController.undo()

      public void cancel() {
        if (isNewNode) {
          final String detailText = DetailTextModel.getDetailTextText(nodeModel);
          final MModeController modeController = (MModeController) Controller.getCurrentModeController();
          if(detailText != null)
                      modeController.undo();
          modeController.resetRedo();
        }
        stop();
      }
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.undo()

        Value v2 = ValueFactory.createValue(10);
        Value v1 = ValueFactory.createValue(0);
       
        d.beginTrans();
        d.setFieldValue(0, 0, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, 0).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(0, 0).equals(v2)).getValue());
        d.rollBackTrans();
    }
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.undo()

        d.setSelectedRows(new int[]{0});
        d.insertFilledRow(d.getRow(0));
        int[] sel = d.getSelectedRows();
        assertTrue(sel.length == 1);
        assertTrue(sel[0] == 0);
        d.undo();
        assertTrue(d.getSelectedRows().length == 0);
       
        d.commitTrans();
    }
}
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.undo()

        Value v2 = ValueFactory.createValue(10);
       
        d.beginTrans();
        int fieldIndex = d.getFieldIndexByName("id");
        d.setFieldValue(0, fieldIndex, v2);
        d.undo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v1)).getValue());
        d.redo();
        assertTrue(((BooleanValue) d.getFieldValue(0, fieldIndex).equals(v2)).getValue());
        d.rollBackTrans();
       
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.