Examples of SPath


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

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

                    .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

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

        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

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

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

        SPath path = editorAPI.getEditorPath(editorPart);

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

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

     *
     * 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

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

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

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

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

    }

    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

Examples of org.joshy.sketch.model.SPath

        @Override
        public void execute() {
            if(context.getSelection().size() != 1) return;
            SNode node = context.getSelection().firstItem();
            if(!(node instanceof SPath)) return;
            SPath path = (SPath) node;
            Bounds bounds = path.getTransformedBounds();
            for(SPath.SubPath sub : path.getSubPaths()) {
                for(SPath.PathPoint pt : sub.getPoints()) {

                    pt.x = pt.x -bounds.getX()+path.getTranslateX();
                    pt.y = pt.y -bounds.getY()+path.getTranslateY();
                    pt.cx1 = pt.cx1 -bounds.getX()+path.getTranslateX();
                    pt.cy1 = pt.cy1 -bounds.getY()+path.getTranslateY();
                    pt.cx2 = pt.cx2 -bounds.getX()+path.getTranslateX();
                    pt.cy2 = pt.cy2 -bounds.getY()+path.getTranslateY();

                    modifyPoint(bounds,path,pt);

                    pt.x = pt.x + bounds.getX()-path.getTranslateX();
                    pt.y = pt.y + bounds.getY()-path.getTranslateY();
                    pt.cx1 = pt.cx1 + bounds.getX()-path.getTranslateX();
                    pt.cy1 = pt.cy1 + bounds.getY()-path.getTranslateY();
                    pt.cx2 = pt.cx2 + bounds.getX()-path.getTranslateX();
                    pt.cy2 = pt.cy2 + bounds.getY()-path.getTranslateY();
                }
            }
            path.recalcPath();
            context.redraw();
        }
View Full Code Here

Examples of org.joshy.sketch.model.SPath

            SNode first = context.getSelection().firstItem();
            if(! (first instanceof SShape)) return;
            SShape shape = (SShape) first;
            if(shape instanceof SPath) return;

            SPath path = shape.toPath();
            SketchDocument.SketchPage page = context.getDocument().getCurrentPage();
            page.remove(shape);
            page.add(path);
            context.redraw();
        }
View Full Code Here

Examples of org.joshy.sketch.model.SPath

    @Override
    protected void mousePressed(MouseEvent event, Point2D.Double cursor) {
        start = toolToModel(cursor);
        prev = toolToModel(cursor);
        if(node == null) {
            node = new SPath();
            currentPoint = new SPath.PathPoint(start.x,start.y);
            currentPoint.startPath = true;
            node.addPoint(currentPoint);
            context.getUndoManager().pushAction(new UndoableAddNodeAction(context,node,"path"));
            context.redraw();
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.