Program: 148873
Project: 148873
Buggy source:
/** 
 * This is a callback that will allow us to create the viewer and initialize it.
 */
public void createPartControl(Composite parent){
  viewer=createTreeViewer(parent);
  drillDownAdapter=new DrillDownAdapter(viewer);
  contentProvider=new ServerTreeContentProvider(this.getSite(),new TreeParent("String_Node_Str",null,TreeObject._ROOT_,null,null));
  setTreeContentProvider(contentProvider);
  viewer.setLabelProvider(new ServerTreeLabelProvider());
  viewer.setSorter(new ViewerSorter(){
    public int category(    Object element){
      if (element instanceof TreeParent) {
        TreeParent category=(TreeParent)element;
        if (category.getType() == TreeObject.CATEGORY_FOLDER)         return -1;
      }
      return 0;
    }
  }
);
  viewer.setInput(getViewSite());
  viewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      TreeObject xobject=(TreeObject)((IStructuredSelection)viewer.getSelection()).getFirstElement();
      if (xobject != null && xobject.getType() == TreeObject.DATA_CLUSTER && xobject.isXObject()) {
        try {
          XtentisPort port=Util.getPort(new URL(xobject.getEndpointAddress()),xobject.getUniverse(),xobject.getUsername(),xobject.getPassword());
          WSDataCluster wsObject=port.getDataCluster(new WSGetDataCluster((WSDataClusterPK)xobject.getWsKey()));
          String tip="String_Node_Str";
          if (wsObject != null && wsObject.getDescription() != null) {
            tip=wsObject.getDescription();
            viewer.getControl().setToolTipText(tip);
          }
        }
 catch (        MalformedURLException e) {
          e.printStackTrace();
        }
catch (        XtentisException e) {
          e.printStackTrace();
        }
catch (        RemoteException e) {
          e.printStackTrace();
        }
      }
    }
  }
);
  createTreeDragSource();
  createTreeDropTarget();
  makeActions();
  hookContextMenu();
  hookDoubleClickAction();
  hookKeyPressAction();
  contributeToActionBars();
  hookKeyboard();
  initView();
}

Fixed version (ground truth):
/** 
 * This is a callback that will allow us to create the viewer and initialize it.
 */
public void createPartControl(Composite parent){
  viewer=createTreeViewer(parent);
  drillDownAdapter=new DrillDownAdapter(viewer);
  contentProvider=new ServerTreeContentProvider(this.getSite(),new TreeParent("String_Node_Str",null,TreeObject._ROOT_,null,null));
  setTreeContentProvider(contentProvider);
  viewer.setLabelProvider(new ServerTreeLabelProvider());
  viewer.setSorter(new ViewerSorter(){
    public int category(    Object element){
      if (element instanceof TreeParent) {
        TreeParent category=(TreeParent)element;
        if (category.getType() == TreeObject.CATEGORY_FOLDER)         return -1;
      }
      return 0;
    }
  }
);
  viewer.setInput(getViewSite());
  viewer.addSelectionChangedListener(new ISelectionChangedListener(){
    public void selectionChanged(    SelectionChangedEvent event){
      TreeObject xobject=(TreeObject)((IStructuredSelection)viewer.getSelection()).getFirstElement();
      if (xobject != null && xobject.getType() == TreeObject.DATA_CLUSTER && xobject.isXObject()) {
        try {
          XtentisPort port=Util.getPort(new URL(xobject.getEndpointAddress()),xobject.getUniverse(),xobject.getUsername(),xobject.getPassword());
          WSDataCluster wsObject=port.getDataCluster(new WSGetDataCluster((WSDataClusterPK)xobject.getWsKey()));
          String tip="String_Node_Str";
          if (wsObject != null && wsObject.getDescription() != null) {
            tip=wsObject.getDescription();
            viewer.getControl().setToolTipText(tip);
          }
        }
 catch (        MalformedURLException e) {
          e.printStackTrace();
        }
catch (        XtentisException e) {
          e.printStackTrace();
        }
catch (        RemoteException e) {
          e.printStackTrace();
        }
      }
    }
  }
);
  createTreeDragSource();
  createTreeDropTarget();
  makeActions();
  hookContextMenu();
  hookTreeAction();
  hookDoubleClickAction();
  hookKeyPressAction();
  contributeToActionBars();
  hookKeyboard();
  initView();
}