Package org.jitterbit.integration.client.project

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


            waitLock = null;
        }
    }

    private void updateRecentProjectManager(IntegrationProject project) {
        ProjectLocation loc = getProjectLocation(project);
        RecentProjects rpm = projectManager.getRecentProjects();
        rpm.addProjectLocation(loc);
    }
View Full Code Here


        rpm.addProjectLocation(loc);
    }

    private ProjectLocation getProjectLocation(IntegrationProject project) {
        ManagedProject mp = project.getExtensionObject(ManagedProject.class);
        ProjectLocation loc = new ProjectLocation(project.getName(), mp.getLocation());
        return loc;
    }
View Full Code Here

        }
        File folder = projectFile.getParentFile();
        ProjectLocationPreference.setExistingProjectLocation(folder.getParentFile());
        String fileName = projectFile.getName();
        String projectName = StringUtils.removeEndIgnoreCase(fileName, ProjectFile.FILE_EXTENSION);
        ProjectLocation projectLocation = new ProjectLocation(projectName, folder);
        return projectLocation;
    }
View Full Code Here

     */
    private class TableListener implements SelectionListener {

        @Override
        public void selectionChanged(SelectionChangedEvent evt) {
            ProjectLocation proj = table.getSelectedProject();
            if (proj == null) {
                onNothingSelected();
            } else {
                onProjectSelected(proj);
            }
View Full Code Here

            super(ApplicationResources.STRINGS.getString("Browse.Action"));
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            ProjectLocation project = ProjectLocationBrowser.browseExistingProjectLocation(currentProjectLocation, null);
            if (project != null) {
                openHandler.handle(project);
            }
        }
View Full Code Here

        @Override
        protected ProjectLocation doInBackground() throws Exception {
            ProjectLocationRenamer renamer = new ProjectLocationRenamer(location);
            renamer.setConflictResolver(new NameCollisionHandler());
            ProjectLocation newLocation = renamer.rename(newName);
            if (newLocation != null) {
                viewer.getRecentProjects().addProjectLocation(newLocation);
            }
            return newLocation;
        }
View Full Code Here

        this.predicate = predicate;
    }

    @Override
    public boolean include(javax.swing.RowFilter.Entry<? extends ProjectLocationsTableModel, ? extends Integer> entry) {
        ProjectLocation loc = entry.getModel().getRowObjectAt(entry.getIdentifier());
        return predicate.apply(loc);
    }
View Full Code Here

        handler.handlePotentialJitterpack(file);
        return true;
    }

    private boolean handleProjectFileDrop(File file) {
        ProjectLocation location = getProjectLocation(file);
        ProjectLoaderForConvenience loader = new ProjectLoaderForConvenience(
                        window, projectManager, location, ProjectFileDropHandler.class);
        loader.loadAndDisplay();
        return true;
    }
View Full Code Here

    }

    private ProjectLocation getProjectLocation(File file) {
        String fileName = file.getName();
        String projectName = fileName.substring(0, fileName.length() - 4);
        return new ProjectLocation(projectName, file.getParentFile());
    }
View Full Code Here

        public AvailableBackup asAvailableBackup() {
            String name = getProjectName();
            if (name == null || name.isEmpty()) {
                return null;
            }
            final ProjectLocation loc = new ProjectLocation(name, folder);
            return new AvailableBackup() {

                @Override
                public ProjectLocation getLocation() {
                    return loc;
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.