Package org.apache.cayenne.project

Examples of org.apache.cayenne.project.ProjectSaver


        URL url = projectDir.toURL();

        URLResource res = new URLResource(url);

        ProjectSaver saver = getApplication().getInjector().getInstance(
                ProjectSaver.class);

        boolean isNewProject = p.getConfigurationResource() == null;
        Preferences tempOldPref = null;
        if (isNewProject) {
            tempOldPref = getApplication().getMainPreferenceForProject();
        }

        saver.saveAs(p, res);

        if (oldPath != null
                && oldPath.length() != 0
                && !oldPath.equals(p.getConfigurationResource().getURL().getPath())) {
View Full Code Here


            String oldPath = p.getConfigurationResource().getURL().getPath();

            getProjectController().getProjectWatcher().pauseWatching();

            ProjectSaver saver = getApplication().getInjector().getInstance(
                    ProjectSaver.class);
            saver.save(p);

            RenamedPreferences.removeOldPreferences();

            // if change DataChanelDescriptor name - as result change name of xml file
            // we will need change preferences path
View Full Code Here

TOP

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

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.