Examples of PasteCompoundUndoableEdit


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

                        .getRootNode();
                DataMap map = getProjectController().getCurrentDataMap();

                UndoableEdit undoableEdit;
                if (content instanceof List) {
                    undoableEdit = new PasteCompoundUndoableEdit();

                    for (Object o : (List) content) {
                        paste(currentObject, o);
                        undoableEdit.addEdit(new PasteUndoableEdit(
                                domain,
View Full Code Here

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

            Object currentObject = getProjectController().getCurrentObject();

            if (content != null && currentObject != null) {

                PasteCompoundUndoableEdit undoableEdit = new PasteCompoundUndoableEdit();

                DataChannelDescriptor domain = (DataChannelDescriptor) getProjectController()
                        .getProject()
                        .getRootNode();
                DataMap map = getProjectController().getCurrentDataMap();

                if (content instanceof List) {
                    for (Object o : (List) content) {
                        paste(currentObject, o);
                        undoableEdit.addEdit(new PasteUndoableEdit(
                                domain,
                                map,
                                currentObject,
                                o));
                    }
                }
                else {
                    paste(currentObject, content);
                    undoableEdit.addEdit(new PasteUndoableEdit(
                            domain,
                            map,
                            currentObject,
                            content));
                }
View Full Code Here

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

            Object currentObject = getProjectController().getCurrentObject();

            if (content != null && currentObject != null) {

                PasteCompoundUndoableEdit undoableEdit = new PasteCompoundUndoableEdit();

                DataChannelDescriptor domain = (DataChannelDescriptor) getProjectController()
                        .getProject()
                        .getRootNode();
                DataMap map = getProjectController().getCurrentDataMap();

                if (content instanceof List) {
                    for (Object o : (List) content) {
                        paste(currentObject, o);
                        undoableEdit.addEdit(new PasteUndoableEdit(
                                domain,
                                map,
                                currentObject,
                                o));
                    }
                }
                else {
                    paste(currentObject, content);
                    undoableEdit.addEdit(new PasteUndoableEdit(
                            domain,
                            map,
                            currentObject,
                            content));
                }
View Full Code Here

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

            Object currentObject = getProjectController().getCurrentObject();

            if (content != null && currentObject != null) {
               
                PasteCompoundUndoableEdit undoableEdit = new PasteCompoundUndoableEdit();
                DataDomain domain = getProjectController().getCurrentDataDomain();
                DataMap map = getProjectController().getCurrentDataMap();
               
                if (content instanceof List) {
                    for (Object o : (List) content) {
                        paste(currentObject, o);
                        undoableEdit.addEdit(new PasteUndoableEdit(domain, map, currentObject, o));
                    }
                }
                else {
                    paste(currentObject, content);
                    undoableEdit.addEdit(new PasteUndoableEdit(domain, map, currentObject, content));
                }
               
                application.getUndoManager().addEdit(undoableEdit);
            }
        }
View Full Code Here

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

                        .getRootNode();
                DataMap map = getProjectController().getCurrentDataMap();

                UndoableEdit undoableEdit;
                if (content instanceof List) {
                    undoableEdit = new PasteCompoundUndoableEdit();

                    for (Object o : (List) content) {
                        paste(currentObject, o);
                        undoableEdit.addEdit(new PasteUndoableEdit(
                                domain,
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.