Package javax.swing.undo

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


            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


                }
            }
            deleteShape(ss.element);
        }

        ce.end();
       
        DiagramComponent dc = getElementContainer().getComponent();
        dc.fireUndoableEditUpdate( new UndoableEditEvent(dc, ce));
       
        unselect();
View Full Code Here

            ss.translateShape(depx, depy);
            ce.addEdit(ss.translateShapeEnd());
        }

        ce.end();
       
        DiagramComponent dc = getElementContainer().getComponent();
        dc._compoundEdit.addEdit(ce);
    }
View Full Code Here

                cpe.pathHasChanged();
                ce.addEdit(cpe);
            }
        }

        ce.end();

        // Create new connection path edits
        createconnectionPathedits();
     
        return ce;
View Full Code Here

                }

                // Resize the shape
                selection.translateShape(dtx, dty);
             
                ce.end();   
               
                DiagramComponent dc = getElementContainer().getComponent();
                dc._compoundEdit.addEdit(ce);
            }
        }
View Full Code Here

            if (ue != null && ue.isSignificant()){
                ce.addEdit(ue);
            }
        }

        ce.end();
        if(ce.isSignificant()) { 
            DiagramComponent dc = getElementContainer().getComponent();
            dc._compoundEdit.addEdit(ce);
        }
    }
View Full Code Here

            if (ue != null && ue.isSignificant()){
                ce.addEdit(ue);
            }
        }

        ce.end();
        if(ce.isSignificant()) { 
            DiagramComponent dc = getElementContainer().getComponent();
            dc._compoundEdit.addEdit(ce);
        }
    }
View Full Code Here

            getElementContainer().remove(indice);
            getElementContainer().add(tmp);
            ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, getElementContainer().size()-1));
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
        getElementContainer().getComponent().repaint();
    }

    /**
 
View Full Code Here

                getElementContainer().add(indice+1, tmp);
                ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, indice+1));
            }
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
        getElementContainer().getComponent().repaint();
    }

    /**
 
View Full Code Here

                getElementContainer().add(indice-1, tmp);
                ce.addEdit(new DepthChangedEdit(getElementContainer(), indice, indice-1));
            }
        }
       
        ce.end();
        getElementContainer().getComponent().fireUndoableEditUpdate(new UndoableEditEvent(getElementContainer(), ce));
        getElementContainer().getComponent().repaint();
    }

    /**
 
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.