treeViewer.setInput("root");
treeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
ITreeSelection selection = (ITreeSelection) treeViewer.getSelection();
TestResult testResult = (TestResult) selection.getFirstElement();
if (testResult == null) {
text.setText("");
return;
}
text.setText(testResult.getMessage());
}
});
label = new Label(panel, 0);
label.setText("Details");