Package org.openquark.gems.client.utilities

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


            }
        }

        if (anyUnburnt) {
            // Decrement the update level.  This will post the edit if the level is zero.
            undoableEditSupport.endUpdate();
            updateForBurn();
        } else {
            // Discard the edit because nothing happened.
            undoableEditSupport.endUpdateNoPost();
        }
View Full Code Here


                tableTop.doDisconnectUserAction(conn);
                doSetInputBurnStatusUserAction(inputToBurn, inputToBurn.isBurnt() ? AutoburnLogic.BurnStatus.NOT_BURNT : AutoburnLogic.BurnStatus.MANUALLY_BURNT);
                updateForBurn();

                // Decrement the update level.  This will post the edit if the level is zero.
                undoableEditSupport.endUpdate();
           
                return true;

            } else {
                // un-highlight the output connection
View Full Code Here

            doSetInputBurnStatusUserAction(input, AutoburnLogic.BurnStatus.AUTOMATICALLY_BURNT);
        }

        if (numBurntArgs > 0) {
            // Decrement the update level.  This will post the edit if the level is zero.
            undoableEditSupport.endUpdate();
            updateForBurn();
        } else {
            // Discard the edit because nothing happened.
            undoableEditSupport.endUpdateNoPost();
        }
View Full Code Here

        // Connect the gem.
        gemCutter.getIntellicutManager().attemptIntellicutAutoConnect(newDisplayedGem);
        gemCutter.getIntellicutManager().stopIntellicut();
       
        tableTopUndoableEditSupport.endUpdate();

        // Move the new gem into view and repaint the table top.
        gemCutter.getTableTopPanel().scrollRectToVisible(newDisplayedGem.getBounds())
        gemCutter.getTableTopPanel().repaint();
View Full Code Here

                    UndoableRefactoringEdit addTypeDeclsEdit = new UndoableRefactoringEdit(GemCutter.this, typeDeclsAdder, GemCutterMessages.getString("AddTypedeclsPresentationName"));
                    undoableEditSupport.setEditName(addTypeDeclsEdit.getPresentationName());
                    undoableEditSupport.postEdit(addTypeDeclsEdit);
           
                    // End the update.
                    undoableEditSupport.endUpdate();
                   
                    // Make sure that the dialog is active for long enough to be visible
                    try {
                        sleep(750);
                    } catch(InterruptedException e) {
View Full Code Here

                    UndoableRefactoringEdit cleanImportsEdit = new UndoableRefactoringEdit(GemCutter.this, importCleaner, GemCutterMessages.getString("CleanImportsPresentationName"));
                    undoableEditSupport.setEditName(cleanImportsEdit.getPresentationName());
                    undoableEditSupport.postEdit(cleanImportsEdit);
           
                    // End the update.
                    undoableEditSupport.endUpdate();
                   
                    // Make sure that the dialog is active for long enough to be visible
                    try {
                        sleep(750);
                    } catch(InterruptedException e) {
View Full Code Here

            ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
           
            editSupport.beginUpdate();
            tableTop.doAddGemUserAction(dGem, currentPopupLocation);
            editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
            editSupport.endUpdate();
        }
    }

    /**
     * An editable text field that accepts valid CAL identifiers for variable names
View Full Code Here

                }
                int x = where.x - (pressedAt.x - rect.x);
                int y = where.y - (pressedAt.y - rect.y);
               
                tableTop.doPasteUserAction(displayedGemSelection, new Point(x, y));
                undoableEditSupport.endUpdate();

            } else if (dragMode == TableTopDragMode.GEMDRAGGING) {
               
                // Increment the update level for the edit undo.  This will aggregate the gem translations.
                undoableEditSupport.beginUpdate();
View Full Code Here

                    // Perform the translation
                    tableTop.doChangeGemLocationUserAction(displayedGem, newGemLocation);
                }

                // Decrement the update level.  This will post the edit if the level is zero.
                undoableEditSupport.endUpdate();
               
            } else if (dragMode == TableTopDragMode.CONNECTING || dragMode == TableTopDragMode.DISCONNECTING) {

                // see if we can connect anything
                DisplayedPart partUnder = tableTop.getGemPartUnder(where);
View Full Code Here

                    } else {
                        undoableEditSupport.setEditName(GemCutter.getResourceString("UndoText_DisconnectGems"));
                    }

                    // Decrement the update level, possibly triggering the edit to be posted.
                    undoableEditSupport.endUpdate();
                }

            } else if (dragMode == TableTopDragMode.SELECTING && pressedAt != null) {

                // calculate the bounds of the select area     
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.