try {
IBundleProjectService bpService = Activator.getDefault().acquireService(IBundleProjectService.class);
IProject p = root.getJavaProject().getProject();
if( p.hasNature("org.eclipse.pde.PluginNature") ) {
IBundleProjectDescription bundleDesc = bpService.getDescription(p);
IRequiredBundleDescription requireDesc = bpService.newRequiredBundle("at.bestsolution.efxclipse.runtime.workbench3", null, false, false);
IPackageImportDescription importDesc = bpService.newPackageImport("javafx.scene", null, false);
BundleHelper.addRequiredBundleDescriptions(bundleDesc, requireDesc);
BundleHelper.addPackageImportDescriptions(bundleDesc, importDesc);
bundleDesc.apply(new NullProgressMonitor());
return super.performFinish();
} else {
// TODO Show error that project is not a plugin
return false;
}