/*
* (non-Javadoc)
* @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
*/
public void selectionChanged(SelectionChangedEvent event) {
ResultsElement selectedElement = (ResultsElement) ((TreeSelection) event.getSelection()).getFirstElement();
ComponentResultsElement componentElement = null;
ScenarioResultsElement scenarioResultsElement = null;
ConfigResultsElement configResultsElement = null;
BuildResultsElement buildResultsElement = null;
if (selectedElement instanceof ComponentResultsElement) {
componentElement = (ComponentResultsElement) selectedElement;
} else if (selectedElement instanceof ScenarioResultsElement) {
scenarioResultsElement = (ScenarioResultsElement) selectedElement;
componentElement = (ComponentResultsElement) scenarioResultsElement.getParent(null);
} else if (selectedElement instanceof ConfigResultsElement) {
configResultsElement = (ConfigResultsElement) selectedElement;
scenarioResultsElement = (ScenarioResultsElement) configResultsElement.getParent(null);
componentElement = (ComponentResultsElement) scenarioResultsElement.getParent(null);
} else if (selectedElement instanceof BuildResultsElement) {
buildResultsElement = (BuildResultsElement) selectedElement;
configResultsElement = (ConfigResultsElement) buildResultsElement.getParent(null);
scenarioResultsElement = (ScenarioResultsElement) configResultsElement.getParent(null);
componentElement = (ComponentResultsElement) scenarioResultsElement.getParent(null);
} else if (selectedElement instanceof DimResultsElement) {
buildResultsElement = (BuildResultsElement) selectedElement.getParent(null);
configResultsElement = (ConfigResultsElement) buildResultsElement.getParent(null);
scenarioResultsElement = (ScenarioResultsElement) configResultsElement.getParent(null);
componentElement = (ComponentResultsElement) scenarioResultsElement.getParent(null);
}
if (componentElement != this.componentResultsElement) {