Package org.apache.commons.collections.set

Examples of org.apache.commons.collections.set.ListOrderedSet.addAll()


    try
    {
      Query q = entityManager.createQuery(query);

      ListOrderedSet tmp = new ListOrderedSet();
      tmp.addAll(q.getResultList());
      tmp1 = new Vector(tmp.asList());
    }
    catch (Exception ex)
    {
      facesMessages.add(ex.fillInStackTrace().toString());
View Full Code Here


    long startTime = System.currentTimeMillis();

    entityManager.clear();

    ListOrderedSet tmp = new ListOrderedSet();
    tmp.addAll(qb.getEjbQuery().getResultList());
    Vector<ApplicationUser> tmp1 = new Vector<ApplicationUser>(tmp.asList());
    applicationUserList = tmp1;


    if (callingBean != null)
View Full Code Here

    long startTime = System.currentTimeMillis();

    entityManager.clear();

    ListOrderedSet tmp = new ListOrderedSet();
    tmp.addAll(qb.getEjbQuery().getResultList());
    Vector<Configuration> tmp1 = new Vector<Configuration>(tmp.asList());
    configurationList = tmp1;

    if (callingBean != null)
    {
View Full Code Here

   * @return all menus in the specified shells that match the matcher.
   */
  public List findMenus(Shell[] shells, IMatcher matcher, boolean recursive) {
    ListOrderedSet result = new ListOrderedSet();
    for (int i = 0; i < shells.length; i++)
      result.addAll(findMenus(shells[i], matcher, recursive));
    return new ArrayList(result);
  }

  /**
   * Finds the menus in the given shell using the given matcher. If recursive is set, it will attempt to find the
View Full Code Here

   * @param recursive if set to true, will find sub-menus as well.
   * @return all menus in the specified shell that match the matcher.
   */
  public List findMenus(final Shell shell, IMatcher matcher, boolean recursive) {
    ListOrderedSet result = new ListOrderedSet();
    result.addAll(findMenus(menuBar(shell), matcher, recursive));
    return new ArrayList(result);
  }

  /**
   * Gets the menu bar in the given shell.
View Full Code Here

          continue;
        }
        if (matcher.match(menuItem))
          result.add(menuItem);
        if (recursive)
          result.addAll(findMenusInternal(menuItem.getMenu(), matcher, recursive));
      }
      bar.notifyListeners(SWT.Hide, new Event());
    }
    return new ArrayList(result);
  }
View Full Code Here

   */
  private List findControlsInternal(final List widgets, final IMatcher matcher, final boolean recursive) {
    ListOrderedSet list = new ListOrderedSet();
    for (Iterator iter = widgets.iterator(); iter.hasNext();) {
      Widget w = (Widget) iter.next();
      list.addAll(findControlsInternal(w, matcher, recursive));
    }
    return new ArrayList(list);
  }

  /**
 
View Full Code Here

    ListOrderedSet controls = new ListOrderedSet();
    if (matcher.match(parentWidget) && !controls.contains(parentWidget))
      controls.add(parentWidget);
    if (recursive) {
      List children = getChildrenResolver().getChildren(parentWidget);
      controls.addAll(findControlsInternal(children, matcher, recursive));
    }
    return new ArrayList(controls);
  }

  /**
 
View Full Code Here

   * @return all menus in the specified shells that match the matcher.
   */
  public List findMenus(IViewReference[] view, IMatcher matcher, boolean recursive) {
    ListOrderedSet result = new ListOrderedSet();
    for (int i = 0; i < view.length; i++)
      result.addAll(findMenus(view[i], matcher, recursive));

    return new ArrayList(result);
  }

  /**
 
View Full Code Here

    ListOrderedSet result = new ListOrderedSet();

    Collection resolvers = map.getCollection(clazz);

    if ((resolvers != null) && !resolvers.isEmpty())
      result.addAll(resolvers);
    else if (!Object.class.equals(clazz))
      result.addAll(getResolvers(clazz.getSuperclass()));

    return new ArrayList(result.asList());
  }
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.