@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { if (monitor == null) { monitor= new NullProgressMonitor(); } monitor.beginTask(NewWizardMessages.ClasspathFixSelectionDialog_process_fix_description, 4); try { ClasspathFixProposal fix= dialog.getSelectedClasspathFix(); Change change= fix.createChange(new SubProgressMonitor(monitor, 1)); PerformChangeOperation op= new PerformChangeOperation(change); op.setUndoManager(RefactoringCore.getUndoManager(), change.getName()); op.run(new SubProgressMonitor(monitor, 1)); } catch (OperationCanceledException e) { throw new InterruptedException(); } catch (CoreException e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } });
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { if (monitor == null) { monitor= new NullProgressMonitor(); } monitor.beginTask(NewWizardMessages.ClasspathFixSelectionDialog_process_fix_description, 4); try { ClasspathFixProposal fix= dialog.getSelectedClasspathFix(); Change change= fix.createChange(new SubProgressMonitor(monitor, 1)); PerformChangeOperation op= new PerformChangeOperation(change); op.setUndoManager(RefactoringCore.getUndoManager(), change.getName()); op.run(new SubProgressMonitor(monitor, 1)); } catch (OperationCanceledException e) { throw new InterruptedException(); } catch (CoreException e) { throw new InvocationTargetException(e); } finally { monitor.done(); } } });