Examples of removeSelection()


Examples of com.browseengine.bobo.api.BrowseRequest.removeSelection()

    sel.setValues(new String[]{"red,square,0005"});
      answer.put("groupby", Arrays.asList(new BrowseFacet[]{new BrowseFacet("red,square,0005",1)}));
     
    doTest(req,1,answer,null);

    req.removeSelection("groupby");
    fspec.setMaxCount(2);
    answer.put("groupby", Arrays.asList(new BrowseFacet[]{new BrowseFacet("blue,circle,0913",1),new BrowseFacet("blue,square,1013",1)}));
     
    doTest(req,7,answer,null);
View Full Code Here

Examples of com.browseengine.bobo.api.BrowseRequest.removeSelection()

    answer.put("groupby",
      Arrays.asList(new BrowseFacet[] { new BrowseFacet("red,square,0005", 1) }));

    doTest(req, 1, answer, null);

    req.removeSelection("groupby");
    fspec.setMaxCount(2);
    answer.put(
      "groupby",
      Arrays.asList(new BrowseFacet[] { new BrowseFacet("blue,circle,0913", 1),
          new BrowseFacet("blue,square,1013", 1) }));
View Full Code Here

Examples of com.intellij.openapi.editor.SelectionModel.removeSelection()

        final Project project = editor.getProject();
        SelectionModel selectionModel = editor.getSelectionModel();

        LogicalPosition logicalPosition = new LogicalPosition(line, column);
        editor.getCaretModel().moveToLogicalPosition(logicalPosition);
        selectionModel.removeSelection();
        editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
        if (verticalScrollProportion != -1F)
            EditorUtil.setVerticalScrollProportion(editor, verticalScrollProportion);
        Document document = editor.getDocument();
        if (selectionStart == selectionEnd) {
View Full Code Here

Examples of com.intellij.openapi.editor.SelectionModel.removeSelection()

        editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
        if (verticalScrollProportion != -1F)
            EditorUtil.setVerticalScrollProportion(editor, verticalScrollProportion);
        Document document = editor.getDocument();
        if (selectionStart == selectionEnd) {
            selectionModel.removeSelection();
        } else {
            int selectionStart = Math.min(this.selectionStart, document.getTextLength());
            int selectionEnd = Math.min(this.selectionEnd, document.getTextLength());
            selectionModel.setSelection(selectionStart, selectionEnd);
        }
View Full Code Here

Examples of com.intellij.openapi.editor.SelectionModel.removeSelection()

            long length = s.length();
            caretModel.moveToOffset((int) (offset));
            selectionModel.setSelection((int) (selectionStart -length), (int) (selectionEnd -length));
            editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
          } else {
            selectionModel.removeSelection();
            caretModel.moveToLogicalPosition(new LogicalPosition(line, column));
          }
        }
      }
    });
View Full Code Here

Examples of com.intellij.openapi.editor.SelectionModel.removeSelection()

            long length = s.length();
            caretModel.moveToOffset((int) (offset+length));
            selectionModel.setSelection((int) (selectionStart + length), (int) (selectionEnd + length));
            editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
          } else {
            selectionModel.removeSelection();
            caretModel.moveToLogicalPosition(new LogicalPosition(line + 1, column));
          }
                }
            }
        });
View Full Code Here

Examples of com.intellij.openapi.editor.SelectionModel.removeSelection()

          public void process(@NotNull Editor editor, @NotNull ErlangExpression expression) {
            perform(editor, ContainerUtil.newSmartList(expression));
          }
        });
    }
    selectionModel.removeSelection();
  }

  @NotNull
  private static List<ErlangExpression> getSelectedExpressions(@NotNull PsiElement first, @NotNull PsiElement second) {
    if (second instanceof LeafPsiElement) {
View Full Code Here

Examples of diva.canvas.interactor.SelectionModel.removeSelection()

            } catch (GraphException ex) {
                SelectionModel selectionModel = _controller.getSelectionModel();

                // If it is illegal then blow away the edge.
                if (selectionModel.containsSelection(c)) {
                    selectionModel.removeSelection(c);
                }

                removeEdge(edge);
                throw ex;
            }
View Full Code Here

Examples of diva.canvas.interactor.SelectionModel.removeSelection()

        Object[] userObjects = new Object[selection.length];

        // First remove the selection.
        for (int i = 0; i < selection.length; i++) {
            userObjects[i] = ((Figure) selection[i]).getUserObject();
            model.removeSelection(selection[i]);
        }

        // Remove all the edges first, since if we remove the nodes first,
        // then removing the nodes might remove some of the edges.
        for (int i = 0; i < userObjects.length; i++) {
View Full Code Here

Examples of diva.canvas.interactor.SelectionModel.removeSelection()

        // don't leave selection decorators around...
        Interactor interactor = getInteractor();
        if (interactor instanceof SelectionInteractor) {
            // remove any selection handles, etc.
            SelectionModel model = ((SelectionInteractor) interactor).getSelectionModel();
            model.removeSelection(this);
        }

        repaint();
    }
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.