Package org.apache.cayenne.modeler.undo

Examples of org.apache.cayenne.modeler.undo.CreateAttributeUndoableEdit


            createObjAttribute(mediator.getCurrentDataDomain(), mediator
                    .getCurrentDataMap(), objEntity, attr);

            application.getUndoManager().addEdit(
                    new CreateAttributeUndoableEdit(
                            mediator.getCurrentDataDomain(),
                            mediator.getCurrentDataMap(),
                            objEntity,
                            attr));
        }
        else if (getProjectController().getCurrentDbEntity() != null) {
            DbEntity dbEntity = getProjectController().getCurrentDbEntity();

            DbAttribute attr = (DbAttribute) NamedObjectFactory.createObject(
                    DbAttribute.class,
                    dbEntity);

            createDbAttribute(mediator.getCurrentDataDomain(), mediator
                    .getCurrentDataMap(), dbEntity, attr);

            application.getUndoManager().addEdit(
                    new CreateAttributeUndoableEdit(
                            mediator.getCurrentDataDomain(),
                            mediator.getCurrentDataMap(),
                            dbEntity,
                            attr));
        }
View Full Code Here


           
            createObjAttribute(mediator
                    .getCurrentDataMap(), objEntity, attr);

            application.getUndoManager().addEdit(
                    new CreateAttributeUndoableEdit(
                            (DataChannelDescriptor)mediator.getProject().getRootNode(),
                            mediator.getCurrentDataMap(),
                            objEntity,
                            attr));
        }
        else if (getProjectController().getCurrentDbEntity() != null) {
            DbEntity dbEntity = getProjectController().getCurrentDbEntity();

            DbAttribute attr = (DbAttribute) NamedObjectFactory.createObject(
                    DbAttribute.class,
                    dbEntity);

            createDbAttribute(
                    mediator
                    .getCurrentDataMap(), dbEntity, attr);

            application.getUndoManager().addEdit(
                    new CreateAttributeUndoableEdit(
                            (DataChannelDescriptor)mediator.getProject().getRootNode(),
                            mediator.getCurrentDataMap(),
                            dbEntity,
                            attr));
        }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.undo.CreateAttributeUndoableEdit

Copyright © 2018 www.massapicom. 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.