tmf: Bug 495067: Canceling remote import shows Internal error dialog
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.remote.ui / src / org / eclipse / tracecompass / internal / tmf / remote / ui / wizards / fetch / model / RemoteImportTracesOperation.java
index 053c4586635935d83aee43c4f9e424135a087891..7cfe7ede9ab2b0321cf2ac6060f57973beb6c297 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2015 Ericsson
+ * Copyright (c) 2015, 2016 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -38,6 +38,7 @@ import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.SubMonitor;
@@ -132,7 +133,7 @@ public class RemoteImportTracesOperation extends TmfWorkspaceModifyOperation {
         try {
             doRun(monitor);
             setStatus(Status.OK_STATUS);
-        } catch (InterruptedException e) {
+        } catch (InterruptedException | OperationCanceledException e) {
             setStatus(Status.CANCEL_STATUS);
             throw e;
         } catch (Exception e) {
This page took 0.025756 seconds and 5 git commands to generate.