Examples of undo()


Examples of org.analyse.core.modules.UndoInterface.undo()

        } else if (action.equals(Constantes.UNDO)) {
            UndoInterface u;

            try {
                u = (UndoInterface) p;
                u.undo();
            } catch (ClassCastException exp) {
                System.err.println(exp);
            }
        } else if (action.equals(Constantes.REDO)) {
            UndoInterface u;
View Full Code Here

Examples of org.apache.cayenne.graph.GraphDiff.undo()

    }

    void graphReverted() {
        GraphDiff diff = changeLog.getDiffs();

        diff.undo(new RollbackChangeHandler());
        stateLog.graphReverted();
        reset();

        if (lifecycleEventsEnabled) {
            send(diff, DataChannel.GRAPH_ROLLEDBACK_SUBJECT, context);
View Full Code Here

Examples of org.apache.pivot.wtk.TextArea.undo()

                    textArea.paste();
                    consumed = true;
                } else if (keyCode == Keyboard.KeyCode.Z
                    && textArea.isEditable()) {
                    if (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) {
                        textArea.undo();
                    } else {
                        textArea.redo();
                    }

                    consumed = true;
View Full Code Here

Examples of org.apache.pivot.wtk.TextArea.undo()

                    textArea.paste();
                    consumed = true;
                } else if (keyCode == Keyboard.KeyCode.Z
                    && isEditable) {
                    if (!shiftPressed) {
                        textArea.undo();
                    }
                    consumed = true;
                } else if (keyCode == Keyboard.KeyCode.TAB) {
                    // Only here if acceptsTab is false
                    consumed = super.keyPressed(component, keyCode, keyLocation);
View Full Code Here

Examples of org.apache.pivot.wtk.TextInput.undo()

            } else if (keyCode == Keyboard.KeyCode.V && textInput.isEditable()) {
                textInput.paste();
                consumed = true;
            } else if (keyCode == Keyboard.KeyCode.Z && textInput.isEditable()) {
                if (!Keyboard.isPressed(Keyboard.Modifier.SHIFT)) {
                    textInput.undo();
                }

                consumed = true;
            }
        } else if (keyCode == Keyboard.KeyCode.INSERT) {
View Full Code Here

Examples of org.apache.pivot.wtk.TextPane.undo()

                } else if (keyCode == Keyboard.KeyCode.Z
                    && textPane.isEditable()) {
                    if (Keyboard.isPressed(Keyboard.Modifier.SHIFT)) {
                        textPane.redo();
                    } else {
                        textPane.undo();
                    }

                    consumed = true;
                }
            } else if (keyCode == Keyboard.KeyCode.HOME) {
View Full Code Here

Examples of org.dmlite.model.action.EntitiesAction.undo()

      Comments comments = getComments();
      Comment firstComment = (Comment) comments.first();
      action.setEntities(comments);
      action.setEntity(firstComment);
      action.execute();
      undone = action.undo();
      log.info("Undone Action: " + undone);
    } catch (ActionException ae) {
      log.info("Action problem: " + ae.getMessage());
    }
  }
View Full Code Here

Examples of org.dmlite.model.action.RemoveAction.undo()

      Comments comments = getComments();
      Comment firstComment = (Comment) comments.first();
      action.setEntities(comments);
      action.setEntity(firstComment);
      action.execute();
      undone = action.undo();
      log.info("Undone Action: " + undone);
    } catch (ActionException ae) {
      log.info("Action problem: " + ae.getMessage());
    }
  }
View Full Code Here

Examples of org.dmlite.model.action.Transaction.undo()

      action1.setEntity(firstComment);
      EntitiesAction action2 = new RemoveAction(transaction);
      action2.setEntities(comments);
      action2.setEntity(secondComment);
      transaction.execute();
      allActionsUndone = transaction.undo();
      log.info("Undone Transaction: " + allActionsUndone);
    } catch (ActionException ae) {
      log.info("Transaction problem: " + ae.getMessage());
    }
  }
View Full Code Here

Examples of org.drools.builder.KnowledgeBuilder.undo()

                "end\n";

        kbuilder.add(ResourceFactory.newByteArrayResource(declarationC.getBytes()), ResourceType.DRL);

        assertTrue(kbuilder.hasErrors());
        kbuilder.undo();
        assertFalse(kbuilder.hasErrors());

        KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
        kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
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.