Package de.fu_berlin.inf.dpp.util

Examples of de.fu_berlin.inf.dpp.util.StackTrace


        isInitialized = initialized;
    }

    protected static void checkInitialized() {
        if (plugin == null || !isInitialized()) {
            LogLog.error("Saros not initialized", new StackTrace()); //$NON-NLS-1$
            throw new IllegalStateException();
        }
    }
View Full Code Here


                    remoteVersionInfo.version, peer.getBase());
                break;
            default:
                log.warn(
                    "Warning message requested when no warning is in place!", //$NON-NLS-1$
                    new StackTrace());
                // No warning to display
                message = MessageFormat.format(
                    Messages.InvitationWizard_invite_error, peer);
                break;
            }
View Full Code Here

        log.trace("EditorPool.add (" + path.toString() + ") invoked");

        if (getEditors(path).contains(editorPart)) {
            log.error("EditorPart was added twice to the EditorPool: "
                + editorPart.getTitle(), new StackTrace());
            return;
        }

        ITextViewer viewer = EditorAPI.getViewer(editorPart);
        if (viewer == null) {
View Full Code Here

            return null;
        }

        if (!sarosSession.isShared(file.getProject())) {
            log.warn("File is from incorrect project: " + file.getProject()
                + " should be " + sarosSession + ": " + file, new StackTrace());
        }

        IPath path = file.getProjectRelativePath();
        if (path == null) {
            log.warn("Could not find path for editor " + editorPart.getTitle());
View Full Code Here

            return null;
        }

        if (!sarosSession.isShared(file.getProject())) {
            log.warn("File is from incorrect project: " + file.getProject()
                + " should be " + sarosSession + ": " + file, new StackTrace());
        }

        IPath path = file.getProjectRelativePath();
        if (path == null) {
            log.warn("Could not find path for editor " + editorPart.getTitle());
View Full Code Here

        assert !connectedUserWithWriteAccessFiles.contains(path);

        IFile file = path.getFile();
        if (!file.exists()) {
            log.error("Attempting to connect to file which"
                + " is not available locally: " + path, new StackTrace());
            return;
        }

        FileEditorInput input = new FileEditorInput(file);
        IDocumentProvider provider = EditorManager.getDocumentProvider(input);
View Full Code Here

            return false;
        if (getClass() != obj.getClass()) {
            if (obj.getClass() == String.class || obj.getClass() == JID.class)
                log.warn(
                    Messages.User_comparing
                        + obj.getClass(), new StackTrace());
            return false;
        }
        User other = (User) obj;
        if (jid == null) {
            if (other.jid != null)
View Full Code Here

                toSendViaNetwork.add(user);
            }
        }

        if (toSendViaNetwork.isEmpty()) {
            log.trace(null, new StackTrace());
            return;
        }
        this.outgoingQueue.add(new DataObjectQueueItem(toSendViaNetwork,
            activityDataObject));
    }
View Full Code Here

        descData = Utils.deflate(transferDescription.toByteArray(),
            progress.newChild(1));
        if (descData == null) {
            log.error(
                "Failed to deflate bytes of a Base64 encoded TransferDescription String:"
                    + transferDescription.toBase64(), new StackTrace());
            throw new IOException();
        }

        try {
            int countDescription = Math.max(0, descData.length / CHUNKSIZE) + 1;
View Full Code Here

     */
    public void addData(AbstractStatisticCollector collector,
        SessionStatistic data) {
        if (activeCollectors == null || activeCollectors.isEmpty()) {
            log.warn("There are no active SessionCollectors left,"
                + " but we were called from one anyhow.", new StackTrace());
        }

        // fetch the data from the collector and remove him from the active list
        statistic.addAll(data);
        if (activeCollectors != null) {
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.util.StackTrace

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.