Examples of enableForPath()


Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

        CayenneAction cutAction = getAction(CutAction.class);
        boolean canCopy = true; // cut/copy can be performed if selected objects are on
        // the same level

        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

                    .getInstance(ConfigurationNodeParentGetter.class);
            Object parent = parentGetter.getParent(objects[0]);

            for (int i = 1; i < objects.length; i++) {
                if (parentGetter.getParent(objects[i]) != parent
                        || !cutAction.enableForPath((ConfigurationNode) objects[i])) {
                    canCopy = false;
                    break;
                }
            }
        }
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

        CayenneAction cutAction = getAction(CutAction.class);
        boolean canCopy = true; // cut/copy can be performed if selected objects are on
        // the same level

        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

                    .getInstance(ConfigurationNodeParentGetter.class);
            Object parent = parentGetter.getParent(objects[0]);

            for (int i = 1; i < objects.length; i++) {
                if (parentGetter.getParent(objects[i]) != parent
                        || !cutAction.enableForPath((ConfigurationNode) objects[i])) {
                    canCopy = false;
                    break;
                }
            }
        }
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

        updateActions("Selected Objects");
       
        CayenneAction cutAction = getAction(CutAction.getActionName());
        boolean canCopy = true; // cut/copy can be performed if selected objects are on the same level
       
        if (!cutAction.enableForPath(paths[0])) {
            canCopy = false;
        }
        else {
            Object parent = paths[0].getObjectParent();
           
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

        }
        else {
            Object parent = paths[0].getObjectParent();
           
            for (int i = 1; i < paths.length; i++) {
                if (paths[i].getObjectParent() != parent || !cutAction.enableForPath(paths[i])) {
                    canCopy = false;
                    break;
                }
            }
        }
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

        CayenneAction cutAction = getAction(CutAction.class);
        boolean canCopy = true; // cut/copy can be performed if selected objects are on
        // the same level

        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
View Full Code Here

Examples of org.apache.cayenne.modeler.util.CayenneAction.enableForPath()

                    .getInstance(ConfigurationNodeParentGetter.class);
            Object parent = parentGetter.getParent(objects[0]);

            for (int i = 1; i < objects.length; i++) {
                if (parentGetter.getParent(objects[i]) != parent
                        || !cutAction.enableForPath((ConfigurationNode) objects[i])) {
                    canCopy = false;
                    break;
                }
            }
        }
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.