Package org.openquark.gems.client.utilities

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


                undoableEditSupport.endUpdate();

            } else if (dragMode == TableTopDragMode.GEMDRAGGING) {
               
                // Increment the update level for the edit undo.  This will aggregate the gem translations.
                undoableEditSupport.beginUpdate();
                if (dragList.length > 0) {
                    undoableEditSupport.setEditName(dragList.length > 1 ? GemCutter.getResourceString("UndoText_MoveGems") :
                                                                          GemCutter.getResourceString("UndoText_MoveGem"));
                }
View Full Code Here


            public void actionPerformed(ActionEvent evt) {
                DisplayedGem dGem = tableTop.createDisplayedValueGem(new Point());
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, partInput.getConnectionPoint());
                tidyAsConnected(dGem.getDisplayedOutputPart(), partInput, false);
               
                tableTop.handleConnectGemPartsGesture(dGem.getGem().getOutputPart(), partInput.getPartInput());
View Full Code Here

               
                // Now actually create, add, and connect the collector.
                DisplayedGem dGem = tableTop.createDisplayedCollectorGem(new Point(0, 0), collectorToTarget);
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, displayedPartOutput.getConnectionPoint());
                tidyAsConnected(displayedPartOutput, dGem.getDisplayedInputPart(0), true);

                tableTop.handleConnectGemPartsGesture(displayedPartOutput.getPartOutput(), dGem.getGem().getInputPart(0));
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedValueGem(currentPopupLocation);
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, currentPopupLocation);
                editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
                editSupport.endUpdate();
            }
        };
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedCodeGem(currentPopupLocation);
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, currentPopupLocation);
                editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
                editSupport.endUpdate();
            }
        };
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedCollectorGem(currentPopupLocation, tableTop.getTargetCollector());
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, currentPopupLocation);
                editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
                editSupport.endUpdate();
               
                tableTop.displayLetNameEditor((CollectorGem)dGem.getGem());
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedRecordFieldSelectionGem(currentPopupLocation);
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();
               
                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, currentPopupLocation);
                editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
                editSupport.endUpdate();
            }
        };
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedRecordCreationGem(currentPopupLocation);
                ExtendedUndoableEditSupport editSupport = tableTop.getUndoableEditSupport();

                editSupport.beginUpdate();
                tableTop.doAddGemUserAction(dGem, currentPopupLocation);
                editSupport.setEditName(GemCutterMessages.getString("UndoText_Add", dGem.getDisplayText()));
                editSupport.endUpdate();
            }
        };
View Full Code Here

            public void actionPerformed(ActionEvent evt) {
                TableTop tableTop = gemCutter.getTableTop();
                DisplayedGem dGem = tableTop.createDisplayedReflectorGem(currentPopupLocation, gemCutter.getCollectorForAddingReflector());
                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.