public void handle(Change change, CoreException exception) { JavaPlugin.log(exception); handle(change, exception.getStatus()); }
PerformChangeOperation pco= op.fPerformChangeOperation; if (pco != null && pco.changeExecutionFailed()) { ChangeExceptionHandler handler= new ChangeExceptionHandler(fParent, fRefactoring); Throwable inner= e.getTargetException(); if (inner instanceof RuntimeException) { handler.handle(pco.getChange(), (RuntimeException)inner); } else if (inner instanceof CoreException) { handler.handle(pco.getChange(), (CoreException)inner); } else { throw e;
private void handle(Change change, IStatus status) { if (change instanceof CompositeChange) { Change undo= ((CompositeChange)change).getUndoUntilException(); if (undo != null) { JavaPlugin.log(status); final ErrorDialog dialog= new RefactorErrorDialog(fParent, RefactoringMessages.ChangeExceptionHandler_dialog_title, Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); int result= dialog.open(); if (result == IDialogConstants.OK_ID) { performUndo(undo); } return; } } ErrorDialog dialog= new ErrorDialog(fParent, RefactoringMessages.ChangeExceptionHandler_dialog_title, Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); dialog.open(); }
PerformChangeOperation pco= op.fPerformChangeOperation; if (pco != null && pco.changeExecutionFailed()) { ChangeExceptionHandler handler= new ChangeExceptionHandler(fParent, fRefactoring); Throwable inner= e.getTargetException(); if (inner instanceof RuntimeException) { handler.handle(pco.getChange(), (RuntimeException)inner); } else if (inner instanceof CoreException) { handler.handle(pco.getChange(), (CoreException)inner); } else { throw e;
private void handle(Change change, IStatus status) { if (change instanceof CompositeChange) { Change undo= ((CompositeChange)change).getUndoUntilException(); if (undo != null) { JavaPlugin.log(status); final ErrorDialog dialog= new RefactorErrorDialog(fParent, change.getName(), Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); int result= dialog.open(); if (result == IDialogConstants.OK_ID) { performUndo(undo); } return; } } ErrorDialog dialog= new ErrorDialog(fParent, change.getName(), Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); dialog.open(); }
PerformChangeOperation pco= op.fPerformChangeOperation; if (pco != null && pco.changeExecutionFailed()) { ChangeExceptionHandler handler= new ChangeExceptionHandler(fParent, fRefactoring); Throwable inner= e.getTargetException(); if (inner instanceof RuntimeException) { handler.handle(pco.getChange(), (RuntimeException)inner); } else if (inner instanceof CoreException) { handler.handle(pco.getChange(), (CoreException)inner); } else { throw e;
public void handle(Change change, CoreException exception) { JavaPlugin.log(exception); handle(change, exception.getStatus()); }
private void handle(Change change, IStatus status) { if (change instanceof CompositeChange) { Change undo= ((CompositeChange)change).getUndoUntilException(); if (undo != null) { JavaPlugin.log(status); final ErrorDialog dialog= new RefactorErrorDialog(fParent, change.getName(), Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); int result= dialog.open(); if (result == IDialogConstants.OK_ID) { performUndo(undo); } return; } } ErrorDialog dialog= new ErrorDialog(fParent, change.getName(), Messages.format(RefactoringMessages.ChangeExceptionHandler_dialog_message, fName), status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR); dialog.open(); }
public void handle(Change change, CoreException exception) { JavaPlugin.log(exception); handle(change, exception.getStatus()); }
public void handle(Change change, RuntimeException exception) { JavaPlugin.log(exception); IStatus status= null; if (exception.getMessage() == null) { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, RefactoringMessages.ChangeExceptionHandler_status_without_detail, exception); } else { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, exception.getMessage(), exception); } handle(change, status); }
public void handle(Change change, RuntimeException exception) { JavaPlugin.log(exception); IStatus status= null; if (exception.getMessage() == null) { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, RefactoringMessages.ChangeExceptionHandler_status_without_detail, exception); } else { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, exception.getMessage(), exception); } handle(change, status); }
public void handle(Change change, RuntimeException exception) { JavaPlugin.log(exception); IStatus status= null; if (exception.getMessage() == null) { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, RefactoringMessages.ChangeExceptionHandler_status_without_detail, exception); } else { status= new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IStatus.ERROR, exception.getMessage(), exception); } handle(change, status); }