Package com.google.devtools.depan.eclipse.utils.elementkinds

Examples of com.google.devtools.depan.eclipse.utils.elementkinds.ElementKindDescriptor


    // JFace guarantees that TableViewers always provide a structured selection
    IStructuredSelection selectedElementKinds = getSelection();

    Collection<Class<? extends Element>> result = Lists.newArrayList();
    for(Object obj : selectedElementKinds.toList()) {
      ElementKindDescriptor item = (ElementKindDescriptor) obj;
      result.add(item.getElementKind());
    }
    return result;
  }
View Full Code Here


    public String getColumnText(Object element, int columnIndex) {
      if (null == element) {
        return null;
      }

      ElementKindDescriptor item = (ElementKindDescriptor) element;
      switch (columnIndex) {
      case 0:
        return item.getElementKindName();
      case 1:
        return item.getPluginName();
      }

      return null;
    }
View Full Code Here

   */
  public void incrStats(Collection<GraphNode> nodes) {
    totalCount += nodes.size();

    for (GraphNode node : nodes) {
      ElementKindDescriptor descr = findDescriptor(node);
      if (null == descr) {
        otherCount++;
      }
      else {
        int count = kindCounts.get(descr);
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.eclipse.utils.elementkinds.ElementKindDescriptor

Copyright © 2018 www.massapicom. 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.