IConnectionWrapper[] connections = getWrappersFromSelection();
if( connections != null ) {
if( !anyConnected(connections) && allControlable(connections))
menu.add(new MBeanServerConnectAction(connections));
else if( allControlable(connections))
menu.add(new MBeanServerDisconnectAction(connections));
menu.add(new DeleteConnectionAction(connections));
}
// Finish up