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());
}
}
});