fixProposals);
if (dialog.open() != 0) {
throw new OperationCanceledException();
}
final ClasspathFixProposal fix = dialog.getSelectedClasspathFix();
if (fix != null) {
return new IRunnableWithProgress() {
/*
* (non-Javadoc)
* @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor)
*/
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
if (monitor == null) {
monitor = new NullProgressMonitor();
}
monitor.beginTask(WizardMessages.NewTestCaseCreationWizard_create_progress, 4);
try {
Change change = fix.createChange(new SubProgressMonitor(monitor, 1));
new PerformChangeOperation(change).run(new SubProgressMonitor(monitor, 1));
runnable.run(new SubProgressMonitor(monitor, 2));
} catch (OperationCanceledException e) {
throw new InterruptedException();