public void setAccessible(final JComponent c, final AccessMode.Type required) {
c.setEnabled(application.getAccessType().compareTo(required) >= 0);
}
private ServicesInfo getSelectedServicesInfo() {
final ClustersPanel csp = clustersPanel;
if (csp == null) {
return null;
}
final ClusterTab selected = csp.getClusterTab();
if (selected == null) {
return null;
}
//TODO: or drbd
final Cluster c = selected.getCluster();