final IMapSelection selection = controller.getSelection();
if (range && !extend) {
selection.selectContinuous(newlySelectedNode);
}
else if (extend && !range) {
selection.toggleSelected(newlySelectedNode);
}
if (extend == range) {
if (selection.isSelected(newlySelectedNode) && selection.size() == 1
&& FocusManager.getCurrentManager().getFocusOwner() instanceof MainView)
return;