@Override public void run() throws Exception { change.dispose(); } @Override
@Override public void run() throws Exception { changeToDispose.dispose(); } @Override
public void run() throws Exception { change.dispose(); } public void handleException(Throwable exception) {
public void run() throws Exception { changeToDispose.dispose(); } public void handleException(Throwable exception) {
@Override public void dispose() { // the active change could be cleared. if (fActiveChange != null) fActiveChange.dispose(); }
@Override public void dispose() { // the active change could be cleared. if (fActiveChange != null) fActiveChange.dispose(); }
@Override public void run() throws Exception { change.dispose(); }
public void run() { change.dispose(); } public void handleException(Throwable exception) {
public void dispose() { // the active change could be cleared. if (fActiveChange != null) fActiveChange.dispose(); }
@Override public void run() throws Exception { change.dispose(); } @Override
@Override public void run() throws Exception { change.dispose(); } @Override
@Override public void run() throws Exception { change.dispose(); } @Override
@Override public void run() throws Exception { changeToDispose.dispose(); } @Override
public void run() throws Exception { change.dispose(); } public void handleException(Throwable exception) {
public boolean performCancel() { if (fChange != null) fChange.dispose(); return super.performCancel(); }
private void clearActiveChange() { if (fLabel == null) { fLabel= fActiveChange.getName(); } if (fDescription == null) { fDescription= fActiveChange.getName(); } fActiveChange.dispose(); fActiveChange= null; } }
private void clearActiveChange() { if (fLabel == null) { fLabel= fActiveChange.getName(); } if (fDescription == null) { fDescription= fActiveChange.getName(); } fActiveChange.dispose(); fActiveChange= null; } }
private void clearActiveChange() { if (fLabel == null) { fLabel= fActiveChange.getName(); } if (fDescription == null) { fDescription= fActiveChange.getName(); } fActiveChange.dispose(); fActiveChange= null; } }
public void run(IProgressMonitor monitor) throws CoreException { monitor.beginTask("", 11); //$NON-NLS-1$ try { undo.initializeValidationData(new NotCancelableProgressMonitor(new SubProgressMonitor(monitor, 1))); if (undo.isValid(new SubProgressMonitor(monitor,1)).hasFatalError()) { monitor.done(); return; } undo.perform(new SubProgressMonitor(monitor, 9)); } finally { undo.dispose(); } } };
public void run(IProgressMonitor monitor) throws CoreException { monitor.beginTask("", 11); //$NON-NLS-1$ try { undo.initializeValidationData(new NotCancelableProgressMonitor(new SubProgressMonitor(monitor, 1))); if (undo.isValid(new SubProgressMonitor(monitor,1)).hasFatalError()) { monitor.done(); return; } undo.perform(new SubProgressMonitor(monitor, 9)); } finally { undo.dispose(); } } };