Package javax.swing.undo

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


            // The first selected element is in charge of applying the collective action to the selection
            Shape s0 = getElementContainer().getSelection().getShape(0);
            if (s0 instanceof SelectionContextualActionProvider){
                CompoundEdit ce=new CompoundEdit();
                ((SelectionContextualActionProvider)getElementContainer().getSelection().getSelectedElements().get(0)).doCollectiveAction(getElementContainer().getSelection(), actionX, actionY, actionTarget, actionName, ce);
                ce.end();

                if (ce.isSignificant()) {
                    fireUndoableEditUpdate(new UndoableEditEvent(ShapesContainer.this, ce));
                }
            }
View Full Code Here


          }
          PlotCompoundEdit ce2=plot.new PlotCompoundEdit(oldValues);
          plot.repaintDiagram(plot.getBounds());
          ce.addEdit(ce2);
        }
        ce.end();
      }
      // store undoable event
      selection.getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(selection.getElementContainer().getComponent(), ce));
      selection.getElementContainer().getComponent().repaint();
View Full Code Here

          ce.addEdit(ce2);
        }
        plot.translate(x1, x2, y1, y2);
            plot.repaintDiagram(plot.getBounds());
      }
      ce.end();
    }
   
    // store undoable event
    if (firstTranslation){
      selection.getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(selection.getElementContainer().getComponent(), ce));
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
            return true;
        }
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
            // Repaint
            bounds.add(getBounds());
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
           
            // Repaint
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
           
            bounds.add(getBounds());
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }

            res =  true;
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();

            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
        } else if (action.equals(resources.getString("rotation") + ";" + resources.getString("leftRotation"))) {
View Full Code Here

            Iterator it = oldValues.keySet().iterator();
            while (it.hasNext()) {
                String n = (String) it.next();
                ce.addEdit(new PropertyChangeEdit(this, n, oldValues.get(n), getPropertyValue(n)));
            }
            ce.end();
           
            if (undoableEdit != null) {
                undoableEdit.addEdit(ce);
            }
           
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.