Examples of MoveOperation


Examples of ch.entwine.weblounge.common.repository.MoveOperation

    if (!isStarted())
      throw new IllegalStateException("Content repository is not connected");

    // Create an asynchronous operation representation and return it
    MoveOperation moveOperation = new MoveOperationImpl(uri, path, moveChildren);
    processor.enqueue(moveOperation);
    return moveOperation;
  }
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.MoveOperation

                    // A. Let z be the partner of y in M'
                    // Node z /*T1*/= (Node) fRightToLeftMatchPrime.get(y); already executed
                    // B. k <- FindPos(x)
                    int k = findPosition(x);
                    // C. Append MOV(w, z, k) to E
                    TreeEditOperation move = new MoveOperation(w, x, z, k);
                    fEditScript.add(move);
                    // D. Apply MOV(w, z, k) to T1
                    move.apply();
                }
            }
            // (d) AlignChildren(w, x)
            if (!w.isLeaf()) {
                alignChildren(w, x);
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.MoveOperation

                    if (!b.isInOrder() && matchContains(a, b, fMatch)) { // b not in S and (a, b) in M
                        // (a) k <- FindPos(b)
                        int k = findPosition(b);
                        // (b)
                        // Append MOV(a, w, k) to E
                        TreeEditOperation move = new MoveOperation(a, b, w, k);
                        fEditScript.add(move);
                        // Apply MOV(a, w, k) to T1
                        move.apply();
                        // (c) Mark a and b "in order"
                        a.enableInOrder();
                        b.enableInOrder();
                    }
                }
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.MoveOperation

        addToNode(ifStatementRight, ASSIGNMENT, "b = a;");
        createEditScript();
        assertThat(fEditScript.size(), is(1));
        TreeEditOperation operation = fEditScript.get(0);
        assertThat(operation.getOperationType(), is(OperationType.MOVE));
        MoveOperation move = (MoveOperation) operation;
        assertThat(move.getOldParent(), is(fRootLeft));
        assertThat(move.getNewParent().getLabel(), is(ifStatementRight.getLabel()));
        assertThat(move.getNewParent().getValue(), is(ifStatementRight.getValue()));
        assertThat(move.getNodeToMove(), is(methodInvocation));
        assertThat(move.getNewNode().getLabel(), is(methodInvocation.getLabel()));
        assertThat(move.getNewNode().getValue(), is(methodInvocation.getValue()));
    }
View Full Code Here

Examples of org.apache.sling.servlets.post.impl.operations.MoveOperation

        providedServices.add(registerOperation(bundleContext,
            SlingPostConstants.OPERATION_MODIFY, modifyOperation));
        providedServices.add(registerOperation(bundleContext,
            SlingPostConstants.OPERATION_COPY, new CopyOperation()));
        providedServices.add(registerOperation(bundleContext,
            SlingPostConstants.OPERATION_MOVE, new MoveOperation()));
        providedServices.add(registerOperation(bundleContext,
            SlingPostConstants.OPERATION_DELETE, new DeleteOperation()));
        providedServices.add(registerOperation(bundleContext,
            SlingPostConstants.OPERATION_NOP, new NopOperation()));
        providedServices.add(registerOperation(bundleContext,
View Full Code Here

Examples of org.apache.sling.servlets.post.impl.operations.MoveOperation

        // other predefined operations
        postOperations.put(SlingPostConstants.OPERATION_COPY,
            new CopyOperation());
        postOperations.put(SlingPostConstants.OPERATION_MOVE,
            new MoveOperation());
        postOperations.put(SlingPostConstants.OPERATION_DELETE,
            new DeleteOperation());
    }
View Full Code Here

Examples of org.apache.sling.servlets.post.impl.operations.MoveOperation

        // other predefined operations
        postOperations.put(SlingPostConstants.OPERATION_COPY,
            new CopyOperation());
        postOperations.put(SlingPostConstants.OPERATION_MOVE,
            new MoveOperation());
        postOperations.put(SlingPostConstants.OPERATION_DELETE,
            new DeleteOperation());
        postOperations.put(SlingPostConstants.OPERATION_NOP, new NopOperation());
    }
View Full Code Here

Examples of org.rssowl.ui.internal.undo.MoveOperation

      DynamicDAO.save(fBin);
    }

    /* Support Undo/Redo */
    if (fIsMove)
      UndoStack.getInstance().addOperation(new MoveOperation(newsToMoveCopy, copiedNews));
    else
      UndoStack.getInstance().addOperation(new CopyOperation(copiedNews));

    /* Delete News from Source if required */
    if (fIsMove) {
View Full Code Here

Examples of org.rssowl.ui.internal.undo.MoveOperation

    INews copiedNews = fFactory.createNews(news, bin);
    DynamicDAO.save(copiedNews);
    DynamicDAO.save(bin);

    UndoStack.getInstance().addOperation(new MoveOperation(Collections.singletonList(news), Collections.singletonList(copiedNews)));

    /* Remove (it's a move!) */
    DynamicDAO.getDAO(INewsDAO.class).setState(Collections.singletonList(news), INews.State.HIDDEN, false, false);

    assertTrue(bin.containsNews(copiedNews));
View Full Code Here

Examples of org.rssowl.ui.internal.undo.MoveOperation

    INews copiedNews = fFactory.createNews(news, bin);
    DynamicDAO.save(copiedNews);
    DynamicDAO.save(bin);

    UndoStack.getInstance().addOperation(new MoveOperation(Collections.singletonList(news), Collections.singletonList(copiedNews), false));

    /* Remove (it's a move!) */
    DynamicDAO.getDAO(INewsDAO.class).setState(Collections.singletonList(news), INews.State.HIDDEN, false, false);

    assertTrue(bin.containsNews(copiedNews));
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.