Search in sources :

Example 16 with UndoableEdit

use of javax.swing.undo.UndoableEdit in project cayenne by apache.

the class JCheckBoxUndoListener method actionPerformed.

@Override
public void actionPerformed(ActionEvent e) {
    UndoableEdit edit = new JUndoableCheckBoxEdit((JCheckBox) e.getSource(), this);
    Application.getInstance().getUndoManager().addEdit(edit);
}
Also used : UndoableEdit(javax.swing.undo.UndoableEdit)

Aggregations

UndoableEdit (javax.swing.undo.UndoableEdit)16 AbstractUndoableEdit (javax.swing.undo.AbstractUndoableEdit)4 DataMap (org.apache.cayenne.map.DataMap)2 UnsupportedFlavorException (java.awt.datatransfer.UnsupportedFlavorException)1 List (java.util.List)1 UndoableEditEvent (javax.swing.event.UndoableEditEvent)1 DataChannelDescriptor (org.apache.cayenne.configuration.DataChannelDescriptor)1 DataNodeDescriptor (org.apache.cayenne.configuration.DataNodeDescriptor)1 DbEntity (org.apache.cayenne.map.DbEntity)1 Embeddable (org.apache.cayenne.map.Embeddable)1 ObjEntity (org.apache.cayenne.map.ObjEntity)1 Procedure (org.apache.cayenne.map.Procedure)1 QueryDescriptor (org.apache.cayenne.map.QueryDescriptor)1 PasteCompoundUndoableEdit (org.apache.cayenne.modeler.undo.PasteCompoundUndoableEdit)1 PasteUndoableEdit (org.apache.cayenne.modeler.undo.PasteUndoableEdit)1 RemoveAttributeUndoableEdit (org.apache.cayenne.modeler.undo.RemoveAttributeUndoableEdit)1 RemoveCallbackMethodUndoableEdit (org.apache.cayenne.modeler.undo.RemoveCallbackMethodUndoableEdit)1 RemoveCompoundUndoableEdit (org.apache.cayenne.modeler.undo.RemoveCompoundUndoableEdit)1 RemoveRelationshipUndoableEdit (org.apache.cayenne.modeler.undo.RemoveRelationshipUndoableEdit)1 RemoveUndoableEdit (org.apache.cayenne.modeler.undo.RemoveUndoableEdit)1