selectionServiceListener = new ISelectionListener() {
public void selectionChanged(IWorkbenchPart sourcepart,
ISelection selection) {
if (sourcepart instanceof QUARCModelElementEditor && ((QUARCModelElementEditor)sourcepart).getModelElement() instanceof QueryResultSet) {
AbstractElementGraphBuilder builder = ((AbstractGSSFormPage) ((QUARCModelElementEditor) sourcepart)
.getActivePageInstance()).getBuilder();
if (builder instanceof GSSQueryResultGraphBuilder) {
showUIForRatings(builder);
}
} else
if (sourcepart instanceof QUARCModelElementEditor && ((QUARCModelElementEditor)sourcepart).getModelElement() instanceof SelectedGoalsPriorities) {
AbstractElementGraphBuilder builder = ((AbstractGSSFormPage) ((QUARCModelElementEditor) sourcepart)
.getActivePageInstance()).getBuilder();
if (builder instanceof SelectedGoalsGraphBuilder) {
showScales((SelectedGoalsGraphBuilder) builder);
}
} else {