tmf: Bug 495067: Canceling remote import shows Internal error dialog
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 31 May 2016 20:46:13 +0000 (16:46 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 2 Jun 2016 21:15:00 +0000 (17:15 -0400)
The OperationCanceledException is now caught gracefully.

Change-Id: I2da2fd00e50b14d3a215aa2389ea241e51fb698f
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/74117
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
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.026139 seconds and 5 git commands to generate.