ArrayList<ManagedBean> selectedMBeans = new ArrayList<ManagedBean>();
for(int index = 0; index < selectedIndices.length ; index++)
{
ManagedBean selectedMBean = (ManagedBean)_table.getItem(selectedIndices[index]).getData();
selectedMBeans.add(selectedMBean);
}
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
NavigationView view = (NavigationView)window.getActivePage().findView(NavigationView.ID);
ManagedBean bean = null;
try
{
for(ManagedBean mbean: selectedMBeans)
{
view.addManagedBean(mbean);