openAction.run(itemPointer);
} else if (itemPointer.definition instanceof JavaDefinition) {
//note that it will only be able to find a java definition if JDT is actually available
//so, we don't have to care about JDTNotAvailableExceptions here.
JavaDefinition javaDefinition = (JavaDefinition) itemPointer.definition;
OpenAction openAction = new OpenAction(pyEdit.getSite());
StructuredSelection selection = new StructuredSelection(new Object[] { javaDefinition.javaElement });
openAction.run(selection);
} else {
String message;