void (boolean selected) { if (project.isDisposed()) return; currentState.setOpenDirectoriesWithSingleClick(selected); getDefaultState().setOpenDirectoriesWithSingleClick(selected); getGlobalOptions().setOpenDirectoriesWithSingleClick(selected); var pane = getCurrentProjectViewPane(); if (pane != null) { var tree = pane.getTree(); if (tree != null) { tree.setToggleClickCount(selected ? 1 : 2); } } }