private void resetFilter(final NodeModel node) {
node.getFilterInfo().reset();
}
private void selectVisibleNode() {
final IMapSelection mapSelection = Controller.getCurrentController().getSelection();
final Collection<NodeModel> selectedNodes = mapSelection.getSelection();
final NodeModel[] array = new NodeModel[selectedNodes.size()];
boolean next = false;
for(NodeModel node : selectedNodes.toArray(array)){
if(next){
if (!node.isVisible()) {
mapSelection.toggleSelected(node);
}
}
else
next = true;
}
NodeModel selected = mapSelection.getSelected();
if (!selected.isVisible()) {
if(mapSelection.getSelection().size() > 1){
mapSelection.toggleSelected(selected);
}
else
mapSelection.selectAsTheOnlyOneSelected(selected.getVisibleAncestorOrSelf());
}
mapSelection.setSiblingMaxLevel(mapSelection.getSelected().getNodeLevel(false));
}