Examples of beginUpdate()


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

    // Check #2.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 1);

    // Check #3.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 2);

    // Check #4.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);
View Full Code Here

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

    // Check #4.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);

    // Check #5.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 2);

    // Check #6.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);
View Full Code Here

Examples of net.sourceforge.fullsync.Profile.beginUpdate()

      }
      profileManager.addProfile(p);
    }
    else {
      p = profileManager.getProfile(profileName);
      p.beginUpdate();
      p.setName(textProfileName.getText());
      p.setDescription(textProfileDescription.getText());
      p.setSynchronizationType(comboType.getText());
      p.setSource(src);
      p.setDestination(dst);
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

     */
    boolean doUnburnAutomaticallyBurnedInputsUserAction(Gem gem) {

        // Increment the update level to aggregate any burns with connection change edits.
        ExtendedUndoableEditSupport undoableEditSupport = tableTop.getUndoableEditSupport();
        undoableEditSupport.beginUpdate();
       
        boolean anyUnburnt = false;

        int numInputs = gem.getNInputs();
        for (int i = 0; i < numInputs; i++) {
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

                                                       JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.WARNING_MESSAGE);

            // only do anything if the user answered yes.
            if (option == JOptionPane.YES_OPTION) {
                // Increment the update level to aggregate the edits.
                undoableEditSupport.beginUpdate();

                // disconnect the output and change the burnt state.
                Connection conn = dConn.getConnection();
                tableTop.doDisconnectUserAction(conn);
                doSetInputBurnStatusUserAction(inputToBurn, inputToBurn.isBurnt() ? AutoburnLogic.BurnStatus.NOT_BURNT : AutoburnLogic.BurnStatus.MANUALLY_BURNT);
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

    private void doAutoburnUserAction(Gem gem, int[] argumentsToBurn) {

        ExtendedUndoableEditSupport undoableEditSupport = tableTop.getUndoableEditSupport();

        // Increment the update level to aggregate any burns.
        undoableEditSupport.beginUpdate();
       
        // set the burnable inputs
        int numBurntArgs = argumentsToBurn.length;
        for (int i = 0; i < numBurntArgs; i++) {
            int argIndex = argumentsToBurn[i];
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

            return;
        }

        // Increment the update level for the edit undo.  This will aggregate any gem addition, connection, and burnings..
        ExtendedUndoableEditSupport tableTopUndoableEditSupport = gemCutter.getTableTop().getUndoableEditSupport();
        tableTopUndoableEditSupport.beginUpdate();
       
        // Get a new displayed gem.
        Object selectedItem = ((IntellicutListEntry) intellicutPanel.getIntellicutList().getSelectedValue()).getData();
        DisplayedGem newDisplayedGem = getDisplayedGem(selectedItem, location);
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

                showMonitor();
                setStatus(GemCutterMessages.getString("CalculatingModificationsStatus"));
               
                try {
                    ExtendedUndoableEditSupport undoableEditSupport = tableTop.getUndoableEditSupport();
                    undoableEditSupport.beginUpdate();
           
                    CompilerMessageLogger logger = new MessageLogger();
                    typeDeclsAdder.calculateModifications(logger);
                   
                    if(logger.getMaxSeverity().compareTo(CompilerMessage.Severity.ERROR) >= 0) {
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

                showMonitor();
                setStatus(GemCutterMessages.getString("CalculatingModificationsStatus"));
               
                try {
                    ExtendedUndoableEditSupport undoableEditSupport = tableTop.getUndoableEditSupport();
                    undoableEditSupport.beginUpdate();
           
                    CompilerMessageLogger logger = new MessageLogger();
                    importCleaner.calculateModifications(logger);
                   
                    if(logger.getMaxSeverity().compareTo(CompilerMessage.Severity.ERROR) >= 0) {
View Full Code Here

Examples of org.openquark.gems.client.utilities.ExtendedUndoableEditSupport.beginUpdate()

       
        public void actionPerformed(ActionEvent evt) {
            DisplayedGem dGem = tableTop.createDisplayedReflectorGem(currentPopupLocation, collector);
            ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
           
            editSupport.beginUpdate();
            tableTop.doAddGemUserAction(dGem, currentPopupLocation);
            editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
            editSupport.endUpdate();
        }
    }
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.