void (boolean selected) { if (project.isDisposed()) return; boolean updated = selected != isSelected(); currentState.setShowVisibilityIcons(selected); getDefaultState().setShowVisibilityIcons(selected); getGlobalOptions().setShowVisibilityIcons(selected); if (updated) updatePanes(false); }