Exemplo n.º 1
0
 /*
  * Sets up the node for a threadTree item
  */
 private void setupThreadInfoLeaf(
     TreeItem twoThreadTree, ThreadInfo threadInfo, IProject project) {
   try {
     final String label = threadInfo.getLabel(project);
     final TreeItem leaf = new TreeItem(twoThreadTree, SWT.NONE);
     leaf.setText(label);
     // connect the leaf with the data so that it can be accessed on double click
     leaf.setData(threadInfo);
   } catch (final NumberFormatException nfe) {
     // the getLabel may throw this exception for items that don't have info for both threads
   }
 }