use of org.erlide.wrangler.refactoring.core.exception.WranglerWarningException in project erlide_eclipse by erlang.
the class AbstractDuplicatesSearcherAction method run.
/**
* Runs the refactoring.
*/
public void run() {
// TODO: run it in a new thread
selectionChanged();
if (getUserInput()) {
final IProgressMonitor monitor = new NullProgressMonitor();
try {
IResultParser result;
monitor.beginTask("Detecting..", 0);
result = callRefactoring();
if (result.isSuccessful()) {
showDuplicatesView();
addDuplicates(result.getDuplicates());
} else {
DuplicatesUIManager.closeDuplicatesView();
displayErrorNotification(result.getErrorMessage());
}
} catch (final WranglerWarningException e) {
} catch (final WranglerRpcParsingException e) {
displayErrorNotification(rpcErrorMsg);
} catch (final CoreException e) {
displayErrorNotification(rpcErrorMsg);
} catch (final IOException e) {
displayErrorNotification(rpcErrorMsg);
} finally {
monitor.done();
}
}
}
Aggregations