use of org.eclipse.ui.IEditorInput in project bndtools by bndtools.
the class TestSuiteLabelProvider method getJavaProject.
IJavaProject getJavaProject() {
IFormPage page = (IFormPage) getManagedForm().getContainer();
IEditorInput input = page.getEditorInput();
IFile file = ResourceUtil.getFile(input);
if (file != null) {
return JavaCore.create(file.getProject());
}
return null;
}
Aggregations