Package de.fu_berlin.inf.dpp.concurrent.management

Examples of de.fu_berlin.inf.dpp.concurrent.management.DocumentChecksum


                    .getDocumentProvider(input);
                try {
                    provider.connect(input);
                    doc = provider.getDocument(input);

                    final DocumentChecksum checksum = new DocumentChecksum(path);
                    checksum.bind(doc);
                    checksum.update();
                    Utils.runSafeSWTSync(log, new Runnable() {
                        public void run() {
                            sarosSession.activityCreated(new ChecksumActivity(
                                user, path, checksum.getHash(), checksum
                                    .getLength()));
                        }
                    });
                } catch (CoreException e) {
                    log.warn("Could not check checksum of file "
View Full Code Here


                    }

                    // Update listener management
                    missingDocuments.remove(docPath);

                    DocumentChecksum checksum = docsChecksums.get(docPath);
                    if (checksum == null) {
                        checksum = new DocumentChecksum(docPath);
                        docsChecksums.put(docPath, checksum);
                    }

                    /*
                     * Potentially bind to null doc, which will set the Checksum
                     * to represent a missing file (existsFile() == false)
                     */
                    checksum.bind(doc);
                    checksum.update();

                    // Sent an checksum to everybody
                    ChecksumActivity checksumActivity = new ChecksumActivity(
                        sarosSession.getLocalUser(), checksum.getPath(),
                        checksum.getHash(), checksum.getLength());

                    sarosSession.activityCreated(checksumActivity);

                } finally {
                    if (provider != null) {
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.concurrent.management.DocumentChecksum

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.