Package de.fu_berlin.inf.dpp

Examples of de.fu_berlin.inf.dpp.FileList


                    CancelOption.DO_NOT_NOTIFY_PEER);
            try {
                String projectID = this.getSarosSession()
                    .getProjectID(iProject);
                String projectName = iProject.getName();
                FileList projectFileList = FileListFactory.createFileList(
                    iProject,
                    this.getSarosSession().getSharedResources(iProject), this
                        .getSarosSession().useVersionControl(), subMonitor
                        .newChild(0));
                projectFileList.setProjectID(projectID);
                boolean partial = !this.getSarosSession().isCompletelyShared(
                    iProject);

                ProjectExchangeInfo pInfo = new ProjectExchangeInfo(projectID,
                    "", projectName, partial, projectFileList); //$NON-NLS-1$
View Full Code Here


            }
            checkCancellation();

            log.debug("compute required Files for project " + projectName
                + " with ID: " + projectID);
            FileList requiredFiles = computeRequiredFiles(localProject,
                projectInfo.getFileList(), projectID, skipSyncs.get(projectID)
                    .booleanValue(), vcs, lMonitor.newChild(30));
            requiredFiles.setProjectID(projectID);
            checkCancellation();
            missingFiles.add(requiredFiles);
            lMonitor.done();
        }
        return missingFiles;
View Full Code Here

    private IProject assignLocalProject(final IProject baseProject,
        final String newProjectName, String projectID, final VCSAdapter vcs,
        final SubMonitor monitor, ProjectExchangeInfo projectInfo)
        throws LocalCancellationException {
        IProject newLocalProject = baseProject;
        FileList remoteFileList = projectInfo.getFileList();
        // if the baseProject already exists
        if (newLocalProject != null) {
            if (newLocalProject.getName().equals(newProjectName)) {
                // TODO the project could be managed by a different Team
                // provider
                if (vcs != null && !vcs.isManaged(newLocalProject)
                    && !projectInfo.isPartial()) {
                    String repositoryRoot = remoteFileList.getRepositoryRoot();
                    final String url = remoteFileList.getProjectInfo().url;
                    String directory = url.substring(repositoryRoot.length());
                    vcs.connect(newLocalProject, repositoryRoot, directory,
                        monitor);
                }
            }
View Full Code Here

        if (skipSync)
            return FileListFactory.createEmptyFileList();

        FileListDiff filesToSynchronize = null;
        FileList localFileList = null;
        try {
            localFileList = FileListFactory.createFileList(currentLocalProject,
                null, vcs != null, monitor.newChild(1));
        } catch (CoreException e) {
            e.printStackTrace();
View Full Code Here

                    throw new LocalCancellationException(null,
                        CancelOption.NOTIFY_PEER);
                try {
                    String projectID = sarosSession.getProjectID(iProject);
                    String projectName = iProject.getName();
                    FileList projectFileList = FileListFactory.createFileList(
                        iProject, this.selectedProjectResources.get(iProject),
                        useVersionControl, subMonitor.newChild(0));
                    projectFileList.setProjectID(projectID);
                    boolean partial = !sarosSession
                        .isCompletelyShared(iProject);

                    ProjectExchangeInfo pInfo = new ProjectExchangeInfo(
                        projectID, "", projectName, partial, projectFileList);
View Full Code Here

                            "An error occur while opening the source file", e); //$NON-NLS-1$
                    }
                }

                try {
                    FileList remoteFileList = this.process
                        .getRemoteFileList(projectID);
                    if (sessionManager.getSarosSession().isShared(project)) {
                        FileList sharedFileList = FileListFactory
                            .createFileList(project, sessionManager
                                .getSarosSession().getSharedResources(project),
                                true, null);
                        remoteFileList.getPaths().addAll(
                            sharedFileList.getPaths());
                    }
                    diff = FileListDiff.diff(FileListFactory.createFileList(
                        project, null, true, null), remoteFileList);
                } catch (CoreException e) {
                    MessageDialog.openError(getShell(),
View Full Code Here

        scanWorkspaceProjectsButton
            .addSelectionListener(new SelectionAdapter() {
                @Override
                public void widgetSelected(SelectionEvent e) {
                    FileList fileList = FileListFactory.createEmptyFileList();
                    for (FileList fList : EnterProjectNamePage.this.fileLists) {
                        if (fList.getProjectID().equals(projectID)) {
                            fileList = fList;
                        }
                    }
View Full Code Here

        List<FileList> fileLists = new ArrayList<FileList>();

        // and make a new FileList out of each XML-String
        for (int i = 0; i < fileListStrings.length; i++) {
            FileList fileList = FileList.fromXML(fileListStrings[i]);
            if (fileList != null) {
                fileLists.add(fileList);
            }
        }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.FileList

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.