Examples of ICondition


Examples of org.eclipse.swtbot.swt.finder.waits.ICondition

   * @throws TimeoutException
   */
  public static void waitUntilTreeHasSelectedNodeWithText(SWTBot bot,
      final SWTBotTree tree, final String text, long timeout)
      throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        return tree.selection().get(0, 0).equals(text);
      }

View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.waits.ICondition

   * @param timeout
   * @throws TimeoutException
   */
  public static void waitUntilTableHasRowWithText(SWTBot bot, final SWTBotTable table,
      final String text, long timeout) throws TimeoutException {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        if (table.indexOf(text)<0)
          return false;
        return true;
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.waits.ICondition

    }, timeout);
  }

  public static void waitUntilEditorIsActive(SWTWorkbenchBot bot,
      final SWTBotEditor editor, long timeout) {
    bot.waitUntil(new ICondition() {

      public boolean test() throws Exception {
        return editor.isActive();
      }
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.waits.ICondition

          assertSame(projectImage, showUndeleted.bot().tree()
              .getAllItems()[0].widget.getImage());
        }
      });

      ICondition treeEmpty = new ICondition() {

        public boolean test() throws Exception {
          return showUndeleted.bot().tree().getAllItems().length == 0;
        }
View Full Code Here

Examples of org.freeplane.features.filter.condition.ICondition

      fileChangesSinceSave = 0;
    }
    //node statistics
    final NodeModel rootNode = map.getRootNode();
        final int nodeMainBranches = rootNode.getChildCount();
    final ICondition trueCondition = new ICondition() {
        public boolean checkNode(NodeModel node) {
            return true;
        }
    };
        final ICondition isLeafCondition = new ICondition() {
            public boolean checkNode(NodeModel node) {
                return node.isLeaf();
            }
        };
        final int nodeTotalNodeCount = getNodeCount(rootNode, trueCondition);
        final int nodeTotalLeafCount = getNodeCount(rootNode, isLeafCondition);
        final Filter filter = map.getFilter();
        final int nodeTotalFiltered;
        if(filter != null && filter.getCondition() != null){
            final ICondition matchesFilterCondition = new ICondition() {
                public boolean checkNode(NodeModel node) {
                    return filter.matches(node);
                }
            };
            nodeTotalFiltered = getNodeCount(rootNode, matchesFilterCondition);
View Full Code Here

Examples of org.freeplane.features.filter.condition.ICondition

  }

  void applyFilter(final boolean force) {
    final ASelectableCondition selectedCondition = getSelectedCondition();
    final Filter filter = createFilter(selectedCondition);
    final ICondition condition = filter.getCondition();
    if(condition != selectedCondition && condition instanceof ASelectableCondition)
      getFilterConditions().setSelectedItem(condition);
    else
      applyFilter(filter, Controller.getCurrentController().getMap(), force);
  }
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.