final IWorkbenchPart workbenchPart, Shell shell) {
shell.getDisplay().asyncExec(new Runnable() {
public void run() {
if (workbenchPart instanceof IShowInTarget) {
IShowInTarget showInTarget = (IShowInTarget) workbenchPart;
ShowInContext showInContext =
new ShowInContext(formattedResource.getVProjectFile(), null);
showInTarget.show(showInContext);
} else {
openFileInEditorAsync(formattedResource, workbenchPart.getSite().getWorkbenchWindow());
}
}