Package javax.swing.undo

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


    edit = new StateEdit(p, "Name Change");
    harness.check(p.getName(), "Daniel Dandelion");
   
    // Check #2.
    p.setName("Rose Rosenholz");
    edit.end();
    harness.check(p.getName(), "Rose Rosenholz");

    // Check #3.
    edit.undo();
    harness.check(p.getName(), "Daniel Dandelion");
View Full Code Here


                StateEdit stateEdit = new StateEdit(destCodeGemEditor, GemCutter.getResourceString("UndoText_DisconnectGems"));

                destCodeGemEditor.doSyntaxSmarts();
                updateForConnectivity(destCodeGemEditor);

                stateEdit.end();
                undoableEditSupport.postEdit(stateEdit);
            }
        }

        // Update code gem editors for connectivity.
View Full Code Here

                keepInputsInNaturalOrder = false;
                shiftInput(argIndex, shiftAmount);
                updateVariablesDisplay();

                if (recordingEditStates) {
                    stateEdit.end();
                    if (CodeGemEditor.this.editHandler != null) {
                        CodeGemEditor.this.editHandler.definitionEdited(CodeGemEditor.this, oldInputs, stateEdit);
                    }
                }
            }
View Full Code Here

        // Update the code gem.
        doSyntaxSmarts();

        // Post edit state.
        if (recordingEditStates) {
            stateEdit.end();

            // Post the edit to the edit handler.
            if (CodeGemEditor.this.editHandler != null) {
                CodeGemEditor.this.editHandler.definitionEdited(CodeGemEditor.this, oldInputs, stateEdit);
            }
View Full Code Here

        // re-evaluate the gem based on the new variable form
        doSyntaxSmarts();

        if (recordingEditStates) {
            stateEdit.end();
            if (editHandler != null) {
                editHandler.definitionEdited(this, oldInputs, stateEdit);
            }
        }
    }
View Full Code Here

        // re-evaluate the gem based on the new variable form
        doSyntaxSmarts();

        if (recordingEditStates) {
            stateEdit.end();
            if (editHandler != null) {
                editHandler.definitionEdited(this, oldInputs, stateEdit);
            }
        }
    }
View Full Code Here

        // re-evaluate the gem based on the new variable form
        doSyntaxSmarts();

        if (recordingEditStates) {
            stateEdit.end();
            if (editHandler != null) {
                editHandler.definitionEdited(this, oldInputs, stateEdit);
            }
        }
    }
View Full Code Here

        // re-evaluate the gem based on the new variable form
        doSyntaxSmarts();

        if (recordingEditStates) {
            stateEdit.end();
            if (editHandler != null) {
                editHandler.definitionEdited(this, oldInputs, stateEdit);
            }
        }
    }
View Full Code Here

                    }

                    public void renameDone(String oldName, String newName) {

                        // Post the edit to the edit handler.
                        stateEdit.end();
                        if (CodeGemEditor.this.editHandler != null) {
                            CodeGemEditor.this.editHandler.definitionEdited(CodeGemEditor.this, oldInputs, stateEdit);
                        }

                        // Enable recording edits after the next parse tick
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.