}
@Override
public void execute(IProject project, IPluginModelBase model, IProgressMonitor monitor) throws CoreException {
if( model.getPluginBase() instanceof BundlePluginBase ) {
IBundle bundle = ((BundlePluginBase) model.getPluginBase()).getBundle();
String imports = bundle.getHeader(Constants.IMPORT_PACKAGE);
if( imports == null ) {
imports = "";
}
List<String> collection = new ArrayList<String>();
collection.addAll(Arrays.asList(Activator.getJavaFXImports()));
collection.addAll(Arrays.asList(Activator.getJemmyImports()));
imports += Activator.getCommaValuesFromPackagesArray(collection.toArray(new String[0]), null);
bundle.setHeader(Constants.IMPORT_PACKAGE, imports);
}
super.execute(project, model, monitor);
IFile f = project.getFile(new Path(project.getName() + ".launch"));
JemmyLaunch l = new JemmyLaunch();