* TODO Currently this is implemented fairly inefficiently; every additional
* runtime source has a copy/pasted implementation. It should be refactored.
*/
{
IamlRuntimeLibrariesPlugin runtime = IamlRuntimeLibrariesPlugin.getInstance();
// add a listener
runtime.addFileCopyListener(this);
try {
runtime.copyRuntimeFiles(project, new SubProgressMonitor(monitor, 10));
} catch (IOException e) {
return new Status(Status.ERROR, PLUGIN_ID, "Cannot yet copy over runtime files: " + e.getMessage(), e);
} catch (CoreException e) {
return new Status(Status.ERROR, PLUGIN_ID, "Cannot yet copy over runtime files: " + e.getMessage(), e);
}
}
{
IamlRuntimePhpmailerPlugin runtime = IamlRuntimePhpmailerPlugin.getInstance();
// add a listener
runtime.addFileCopyListener(this);
try {
runtime.copyRuntimeFiles(project, new SubProgressMonitor(monitor, 10));
} catch (IOException e) {
return new Status(Status.ERROR, PLUGIN_ID, "Cannot yet copy over runtime files: " + e.getMessage(), e);
} catch (CoreException e) {
return new Status(Status.ERROR, PLUGIN_ID, "Cannot yet copy over runtime files: " + e.getMessage(), e);
}