if (diagram == null || diagram.eResource() == null) {
return StructuredSelection.EMPTY;
}
IFile file = WorkspaceSynchronizer.getFile(diagram.eResource());
if (file != null) {
CismodelNavigatorItem item = new CismodelNavigatorItem(diagram,
file, false);
return new StructuredSelection(item);
}
return StructuredSelection.EMPTY;
}