for (int i = 0; i < list.size(); i++) {
Object object = list.get(i);
if (object instanceof IAdaptable) {
IWOLipsResource wolipsResource = (IWOLipsResource)((IAdaptable) object).getAdapter(IWOLipsResource.class);
if (wolipsResource != null) {
wolipsResource.open();
}
else if (object instanceof IFile) {
WorkbenchUtilities.open((IFile) object);
}
}