Examples of FileList


Examples of de.fu_berlin.inf.dpp.FileList

        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

Examples of de.fu_berlin.inf.dpp.FileList

                    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

Examples of de.fu_berlin.inf.dpp.FileList

                            "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

Examples of de.fu_berlin.inf.dpp.FileList

        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

Examples of de.fu_berlin.inf.dpp.FileList

        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

Examples of org.apache.pivot.io.FileList

        }

        // Update the selection
        Sequence<File> previousSelectedFiles = getSelectedFiles();

        FileList fileList = new FileList();
        for (int i = 0, n = selectedFiles.getLength(); i < n; i++) {
            File file = selectedFiles.get(i);

            if (file == null) {
                throw new IllegalArgumentException("file is null.");
            }

            if (!file.isAbsolute()) {
                file = new File(rootDirectory, file.getPath());
            }

            if (!file.getParentFile().equals(rootDirectory)) {
                throw new IllegalArgumentException();
            }

            fileList.add(file);
        }

        this.selectedFiles = fileList;

        // Notify listeners
View Full Code Here

Examples of org.apache.pivot.io.FileList

        }

        // Update the selection
        Sequence<File> previousSelectedFiles = getSelectedFiles();

        FileList fileList = new FileList();
        for (int i = 0, n = selectedFiles.getLength(); i < n; i++) {
            File file = selectedFiles.get(i);

            if (file == null) {
                throw new IllegalArgumentException("file is null.");
            }

            if (file.isAbsolute()) {
                if (!file.getParentFile().equals(rootDirectory)) {
                    throw new IllegalArgumentException("file is not a descendant of root directory.");
                }
            } else {
                file = new File(rootDirectory, file.getPath());
            }

            fileList.add(file);
        }

        this.selectedFiles = fileList;

        // Notify listeners
View Full Code Here

Examples of org.apache.pivot.io.FileList

    public DropAction drop(Manifest dragContent) {
        DropAction dropAction = null;

        try {
            FileList fileList = dragContent.getFileList();
            if (fileList.getLength() == 1) {
                File file = fileList.get(0);

                JSONSerializer jsonSerializer = new JSONSerializer();
                FileInputStream fileInputStream = null;
                try {
                    try {
View Full Code Here

Examples of org.apache.pivot.io.FileList

        }

        // Update the selection
        Sequence<File> previousSelectedFiles = getSelectedFiles();

        FileList fileList = new FileList();
        for (int i = 0, n = selectedFiles.getLength(); i < n; i++) {
            File file = selectedFiles.get(i);

            if (file == null) {
                throw new IllegalArgumentException("file is null.");
            }

            fileList.add(file);
        }

        this.selectedFiles = fileList;

        // Notify listeners
View Full Code Here

Examples of org.apache.pivot.io.FileList

    public DropAction drop(Manifest dragContent) {
        DropAction dropAction = null;

        try {
            FileList fileList = dragContent.getFileList();
            if (fileList.getLength() == 1) {
                File file = fileList.get(0);

                JSONSerializer jsonSerializer = new JSONSerializer();
                FileInputStream fileInputStream = null;
                try {
                    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.