for(int index = 0; index < selectedIndices.length ; index++)
{
List<Object> queueEntry = (List<Object>) _table.getItem(selectedIndices[index]).getData();
String queueName = (String) queueEntry.get(0);
ManagedBean queueMBean = _serverRegistry.getQueue(queueName, _virtualHost);
//check queue had not already been unregistered before trying to add it
if(queueMBean != null)
{
selectedMBeans.add(queueMBean);
}
else
{
allSucceded = false;
}
}
if(allSucceded)
{
//ensure the status bar is cleared of any previous failures added by the below
ViewUtility.clearStatusBar();
}
else
{
ViewUtility.operationFailedStatusBarMessage("A selected queue could not be added as it was no longer registered");
refresh();
}
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
NavigationView view = (NavigationView)window.getActivePage().findView(NavigationView.ID);
ManagedBean bean = null;
try
{
for(ManagedBean mbean: selectedMBeans)
{
bean = mbean;