Search in sources :

Example 1 with RemoveAction

use of org.apache.cayenne.modeler.action.RemoveAction in project cayenne by apache.

the class CreateEmbeddableUndoableEdit method undo.

@Override
public void undo() throws CannotUndoException {
    RemoveAction action = actionManager.getAction(RemoveAction.class);
    action.removeEmbeddable(dataMap, embeddable);
}
Also used : RemoveAction(org.apache.cayenne.modeler.action.RemoveAction)

Example 2 with RemoveAction

use of org.apache.cayenne.modeler.action.RemoveAction in project cayenne by apache.

the class CreateObjEntityUndoableEdit method undo.

@Override
public void undo() throws CannotUndoException {
    RemoveAction action = actionManager.getAction(RemoveAction.class);
    action.removeObjEntity(map, objEntity);
}
Also used : RemoveAction(org.apache.cayenne.modeler.action.RemoveAction)

Example 3 with RemoveAction

use of org.apache.cayenne.modeler.action.RemoveAction in project cayenne by apache.

the class CreateDataMapUndoableEdit method undo.

@Override
public void undo() throws CannotUndoException {
    RemoveAction action = actionManager.getAction(RemoveAction.class);
    controller.fireDomainDisplayEvent(new DomainDisplayEvent(this, domain));
    action.removeDataMap(map);
}
Also used : DomainDisplayEvent(org.apache.cayenne.modeler.event.DomainDisplayEvent) RemoveAction(org.apache.cayenne.modeler.action.RemoveAction)

Example 4 with RemoveAction

use of org.apache.cayenne.modeler.action.RemoveAction in project cayenne by apache.

the class CreateDbEntityUndoableEdit method undo.

@Override
public void undo() throws CannotUndoException {
    RemoveAction action = actionManager.getAction(RemoveAction.class);
    action.removeDbEntity(map, entity);
}
Also used : RemoveAction(org.apache.cayenne.modeler.action.RemoveAction)

Example 5 with RemoveAction

use of org.apache.cayenne.modeler.action.RemoveAction in project cayenne by apache.

the class CreateNodeUndoableEdit method undo.

@Override
public void undo() throws CannotUndoException {
    RemoveAction action = actionManager.getAction(RemoveAction.class);
    action.removeDataNode(node);
}
Also used : RemoveAction(org.apache.cayenne.modeler.action.RemoveAction)

Aggregations

RemoveAction (org.apache.cayenne.modeler.action.RemoveAction)8 DataChannelDescriptor (org.apache.cayenne.configuration.DataChannelDescriptor)1 DataNodeDescriptor (org.apache.cayenne.configuration.DataNodeDescriptor)1 DataMap (org.apache.cayenne.map.DataMap)1 DbAttribute (org.apache.cayenne.map.DbAttribute)1 DbEntity (org.apache.cayenne.map.DbEntity)1 DbRelationship (org.apache.cayenne.map.DbRelationship)1 Embeddable (org.apache.cayenne.map.Embeddable)1 EmbeddableAttribute (org.apache.cayenne.map.EmbeddableAttribute)1 ObjAttribute (org.apache.cayenne.map.ObjAttribute)1 ObjEntity (org.apache.cayenne.map.ObjEntity)1 ObjRelationship (org.apache.cayenne.map.ObjRelationship)1 Procedure (org.apache.cayenne.map.Procedure)1 ProcedureParameter (org.apache.cayenne.map.ProcedureParameter)1 QueryDescriptor (org.apache.cayenne.map.QueryDescriptor)1 RemoveAttributeAction (org.apache.cayenne.modeler.action.RemoveAttributeAction)1 RemoveCallbackMethodAction (org.apache.cayenne.modeler.action.RemoveCallbackMethodAction)1 RemoveProcedureParameterAction (org.apache.cayenne.modeler.action.RemoveProcedureParameterAction)1 RemoveRelationshipAction (org.apache.cayenne.modeler.action.RemoveRelationshipAction)1 ObjCallbackMethod (org.apache.cayenne.modeler.editor.ObjCallbackMethod)1