Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ITreeSelection.toList()


    ITreeSelection treeSelection = (ITreeSelection) selection;
    if (treeSelection.isEmpty())
      return EMPTY_WORKING_SET_ARRAY;

    List elements = treeSelection.toList();
    if (elements.size() == 1) {
      Object element = elements.get(0);
      TreePath[] paths = treeSelection.getPathsFor(element);
      if (paths.length != 1)
        return EMPTY_WORKING_SET_ARRAY;
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.