Examples of selectAsTheOnlyOneSelected()


Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

    if (extend == range) {
      if (selection.isSelected(newlySelectedNode) && selection.size() == 1
              && FocusManager.getCurrentManager().getFocusOwner() instanceof MainView)
        return;
      else {
        selection.selectAsTheOnlyOneSelected(newlySelectedNode);
      }
      e.consume();
    }
  }
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

    if (!selected.isVisible()) {
      if(mapSelection.getSelection().size() > 1){
        mapSelection.toggleSelected(selected);
      }
      else
        mapSelection.selectAsTheOnlyOneSelected(selected.getVisibleAncestorOrSelf());
    }
    mapSelection.setSiblingMaxLevel(mapSelection.getSelected().getNodeLevel(false));
  }

  public boolean matches(NodeModel nodeModel) {
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

    }

    if(next != null){
      final MapController mapController = Controller.getCurrentModeController().getMapController();
      mapController.displayNode(next);
      selection.selectAsTheOnlyOneSelected(next);
      if (reFocusSearchInputField)
      {
        // this is called by Enter key listener in FilterConditionEditor
        // => we want to re-focus the search term input field so that one can hit enter
        // again to find the next search result!
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

        else {
          nextSelection = node;
        }
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            selection.selectAsTheOnlyOneSelected(nextSelection);
          }
        });
      }

View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

    final MapController mapController = Controller.getCurrentModeController().getMapController();
    final NodeModel selected = selection.getSelected();
        final NodeModel rootNode = selected.getMap().getRootNode();
    boolean nodeFound = condition.checkNode(rootNode);
    if(nodeFound){
      selection.selectAsTheOnlyOneSelected(rootNode);
    }
    NodeModel next = rootNode;
    for(;;){
      next = filterController.findNext(next, rootNode, Direction.FORWARD, condition);
      if(next == null){
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

      mapController.displayNode(next);
      if(nodeFound){
        selection.toggleSelected(next);
      }
      else{
        selection.selectAsTheOnlyOneSelected(next);
        nodeFound = true;
      }
    }
    if(condition.checkNode(selected))
        selection.makeTheSelected(selected);
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

    final IMapSelection selection = Controller.getCurrentController().getSelection();
    final Iterator<Node> it = toSelect.iterator();
    if (!it.hasNext()) {
      return;
    }
    selection.selectAsTheOnlyOneSelected(((NodeProxy) it.next()).getDelegate());
    while (it.hasNext()) {
      final NodeModel nodeModel = ((NodeProxy) it.next()).getDelegate();
      Controller.getCurrentController().getSelection().toggleSelected(nodeModel);
    }
  }
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.selectAsTheOnlyOneSelected()

            for (final Integer position : range) {
                final NodeModel node = sortedChildren.get(position.intValue());
                moveSingleNodeInGivenDirection(node, direction);
            }
            final IMapSelection selection = Controller.getCurrentController().getSelection();
            selection.selectAsTheOnlyOneSelected(selected);
      for (NodeModel selectedNode : selectedNodes) {
        selection.makeTheSelected(selectedNode);
            }
        }
    }
View Full Code Here

Examples of org.freeplane.uispec4j.framework.Node.selectAsTheOnlyOneSelected()

  @Test
  public void testUp() throws Exception {
    final FreeplaneWindow mainWindow = getFreeMindWindow();
    mainWindow.getAwtComponent();
    final Node node = mainWindow.getNode("22");
    node.selectAsTheOnlyOneSelected();
    node.pressKey(Key.UP);
    assertEquals("11", node.getSelected().getText());
    }
  @Test
  public void testCtrlUp() throws Exception {
View Full Code Here

Examples of org.freeplane.uispec4j.framework.Node.selectAsTheOnlyOneSelected()

  @Test
  public void testCtrlUp() throws Exception {
    final FreeplaneWindow mainWindow = getFreeMindWindow();
    mainWindow.getAwtComponent();
    final Node node = mainWindow.getNode("22");
    node.selectAsTheOnlyOneSelected();
    node.pressKey(Key.control(Key.UP));
    node.pressKey(Key.DOWN);
    assertEquals("11", node.getSelected().getText());
    mainWindow.getToolbar("/main_toolbar").getButton("Undo").click();
    }
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.