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