Package org.apache.cayenne.project

Examples of org.apache.cayenne.project.ConfigurationNodeParentGetter


            return getCurrentDataNode();
        } else if (getCurrentPaths() != null) { // multiple objects
            Object[] paths = getCurrentPaths();
            List<Object> result = new Vector<Object>();

            ConfigurationNodeParentGetter parentGetter = getApplication().getInjector().getInstance(
                    ConfigurationNodeParentGetter.class);
            Object parent = parentGetter.getParent((ConfigurationNode) paths[0]);

            for (Object path : paths) {
                result.add(path);
            }
View Full Code Here


        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
                    .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

        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
                    .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

        }
        else if (getCurrentPaths() != null) { // multiple objects
            Object[] paths = getCurrentPaths();
            List<Object> result = new Vector<Object>();

            ConfigurationNodeParentGetter parentGetter = getApplication()
                    .getInjector()
                    .getInstance(ConfigurationNodeParentGetter.class);
            Object parent = parentGetter.getParent((ConfigurationNode) paths[0]);

            for (Object path : paths) {
                result.add(path);
            }
View Full Code Here

        if (!cutAction.enableForPath((ConfigurationNode) objects[0])) {
            canCopy = false;
        }
        else {
            ConfigurationNodeParentGetter parentGetter = application
                    .getInjector()
                    .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

Related Classes of org.apache.cayenne.project.ConfigurationNodeParentGetter

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.