Package org.jitterbit.integration.client.project

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


        }
    }

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


    public RecentProjectsMenu(ApplicationWindow appWin, ProjectManager projectManager) {
        this.projectManager = projectManager;
        builder = new RecentProjectsMenuBuilder(appWin, new ProjectLocationLoader(appWin, projectManager));
        updater = new Updater();
        RecentProjects recent = projectManager.getRecentProjects();
        recent.addRecentProjectsListener(updater);
        rebuild();
    }
View Full Code Here

     * <code>RecentProjects</code>.
     *
     */
    @Override
    public void dispose() {
        RecentProjects recent = projectManager.getRecentProjects();
        recent.removeRecentProjectsListener(updater);
    }
View Full Code Here

    public void rebuild() {
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                RecentProjects recent = projectManager.getRecentProjects();
                builder.rebuild(recent.getExistingLocations());
            }
        });
    }
View Full Code Here

            }
        }
    }

    private void removeFromHistory(ProjectLocation loc) {
        RecentProjects recentProjects = projectViewer.getRecentProjects();
        recentProjects.removeProjectLocation(loc);
        projectViewer.update();
    }
View Full Code Here

            }
        });
    }
   
    private void remove(ProjectLocation project) {
        RecentProjects recentProjects = viewer.getRecentProjects();
        recentProjects.removeProjectLocation(project);
        viewer.update();
    }
View Full Code Here

            ProjectFile projectFile = managedProject.getProjectFile();
            updateRecentProject(oldName, newName, projectFile);
        }

        private void updateRecentProject(String oldName, String newName, ProjectFile projectFile) {
            RecentProjects mgr = view.getProjectManager().getRecentProjects();
            mgr.projectWasRenamed(oldName, projectFile.getParentFolder(), newName);
        }
View Full Code Here

            }
        });
    }

    private ProjectBrowser createBrowser(List<RecentProjectsViewerAction> actions) {
        RecentProjects recentProjects = projectManager.getRecentProjects();
        ProjectBrowser browser = new ProjectBrowser(recentProjects, false,
                        actions.toArray(new RecentProjectsViewerAction[actions.size()]));
        browser.setCurrentProjectLocation(projectManager.getCurrentProjectLocation());
        browser.setDefaultSearchFolder(projectManager.getProjectDirectory().getLocation());
        return browser;
View Full Code Here

        browser.setCurrentProjectLocation(projectManager.getCurrentProjectLocation());
    }

    @Override
    public boolean canBeDefaultChoice() {
        RecentProjects recentProjects = projectManager.getRecentProjects();
        int projects = recentProjects.getNumberOfRecentProjects();
        return projects > 0;
    }
View Full Code Here

TOP

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

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.