Package de.fu_berlin.inf.dpp.activities

Examples of de.fu_berlin.inf.dpp.activities.SPath


    protected void execTextSelection(TextSelectionActivity selection) {

        log.trace("EditorManager.execTextSelection invoked");

        SPath path = selection.getPath();

        if (path == null) {
            EditorManager.log
                .error("Received text selection but have no writable editor");
            return;
View Full Code Here


                    .showNotification("Follow mode stopped!",
                        "You switched to another editor \nor closed the followed editor.");
            }
        }

        SPath editorPath = this.editorAPI.getEditorPath(editorPart);
        ILineRange viewport = this.editorAPI.getViewport(editorPart);
        ITextSelection selection = this.editorAPI.getSelection(editorPart);

        // Set (and thus send) in this order:
        generateEditorActivated(editorPath);
View Full Code Here

        if (editorPool.isManaged(editor)) {

            // Pretend as if the editor was closed locally (but use the old part
            // before the move happened) and then simulate it being opened again
            SPath path = editorPool.getCurrentPath(editor, sarosSession);
            if (path == null) {
                log.warn("Editor was managed but path could not be found: "
                    + editor);
            } else {
                partClosedOfPath(editor, path);
View Full Code Here

        if (!isSharedEditor(editorPart)) {
            return;
        }

        SPath path = editorAPI.getEditorPath(editorPart);

        partClosedOfPath(editorPart, path);
    }
View Full Code Here

     *
     * TODO This method does not deal with ContributionAnnotation.
     */
    public void refreshAnnotations(IEditorPart editorPart) {

        SPath path = editorAPI.getEditorPath(editorPart);
        if (path == null) {
            log.warn("Could not find path for editor " + editorPart.getTitle());
            return;
        }

View Full Code Here

        if (path == null) {
            log.warn("Could not get path from resource " + resource);
        }

        return new SPath(resource);
    }
View Full Code Here

    }

    private VCSActivity(Type type, ISarosSession sarosSession,
        IResource resource, String url, String directory, String param1) {
        this(type, sarosSession != null ? sarosSession.getLocalUser() : null,
            resource != null ? new SPath(resource) : null, url, directory,
            param1);
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.activities.SPath

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.