Package org.jitterbit.integration.client.project

Examples of org.jitterbit.integration.client.project.ProjectLocation


     *             if the new name is invalid for a project
     */
    public ProjectLocation rename(String newName) throws IllegalNameException, IOException {
        checkOriginalProjectLock();
        validateName(newName);
        ProjectLocation newLocation = createNewLocation(newName);
        if (!isNewLocationOk(newLocation)) {
            return null;
        }
        checkProjectLockForDestination(newLocation);
        originalLocation.updateProjectFileWithName(newName);
        transferData(newLocation);
        newLocation.updateProperties();
        return newLocation;
    }
View Full Code Here


        return newLocation;
    }

    private ProjectLocation createNewLocation(String newName) {
        File newFolder = new File(originalLocation.getLocation().getParentFile(), newName);
        return new ProjectLocation(newName, newFolder);
    }
View Full Code Here

        inputPanel = createLocationDisplayer();
        ui = layoutComponents();
    }

    private ProjectBrowserLocationDisplayer createLocationDisplayer() {
        ProjectLocation suggestedLocation = getSuggestedProjectNameAndLocation();
        ProjectBrowserLocationDisplayer disp = ProjectLocationBrowser.getNewProjectBrowser(
                        suggestedLocation.getProjectName(), suggestedLocation.getLocation());
        disp.addActionListener(createAction);
        Enablable e = EnablabeAdapterFactory.fromAction(createAction);
        disp.addValidInputSensor(e);
        return disp;
    }
View Full Code Here

        File location = ProjectLocationPreference.getNewProjectLocation();
        if (location == null) {
            location = projectManager.getProjectDirectory().getLocation();
        }
        String name = getSuggestedProjectName(location);
        return new ProjectLocation(name, location);
    }
View Full Code Here

        return null;
    }

    @Override
    public void wakeUp() {
        ProjectLocation suggestion = getSuggestedProjectNameAndLocation();
        inputPanel.setProjectName(suggestion.getProjectName());
        inputPanel.setProjectLocation(suggestion.getLocation());
    }
View Full Code Here

     * Returns the <code>ProjectLocation</code> defined in this dialog.
     *
     */
    public ProjectLocation getProjectLocation() {
        dialog = null;
        return new ProjectLocation(getProjectName(), getLocationOnDisk());
    }
View Full Code Here

        System.arraycopy(params, 1, nameParts, 0, nameParts.length);
        String name = StringUtils.join(nameParts, " ");
        ProjectDirectory projectsRoot = view.getProjectManager().getProjectDirectory();
        File dir = new File(projectsRoot.getLocation(), name);
        String projectName = getNewProjectName(dir);
        ProjectLocation projectLoc = new ProjectLocation(projectName, dir);
        WaitLock waitLock = view.getWindow().startWait();
        NewProjectCreator creator = new NewProjectCreator(view.getProjectManager(), view.getWindow(), projectLoc, waitLock);
        Application.getWorker().submitForParallel(creator);
    }
View Full Code Here

            }
        }

        private void copyProject(String projectName) throws Exception {
            ProjectCopier copier = new ProjectCopier(projectManager);
            ProjectLocation fromLoc = new ProjectLocation(projectName, locationOfUnpackedProject);
            ProjectLocation toLoc = new ProjectLocation(projectName, new File(destinationFolder,
                            locationOfUnpackedProject.getName()));
            copier.copy(fromLoc, toLoc);
        }
View Full Code Here

        public void handle(Collection<EntityDescriptor> processedTransformations,
                        Collection<EntityDescriptor> skippedTransformations) {
            notConverted = processedTransformations.isEmpty();
            listenForProjectOpened();
            ProjectLocation projectLoc = new ProjectLocation(project.getProject().getName(), project.getLocation());
            ExceptionHandler<Exception> errorHandler = getErrorHandler(projectLoc);
            ProjectLoader loader = new ProjectLoader(view.getProjectManager(), projectLoc, errorHandler);
            loader.loadAndDisplay(view.getWindow().getViewManager());
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.project.ProjectLocation

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.