aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2013-03-22 07:27:39 (EDT)
committerBernd Hufmann2013-03-22 10:45:19 (EDT)
commit6502b9146405800c93d010f8a5bbcd63e8e6bdd0 (patch)
treea51f786cd63d46d13d638da6d15e935bd2851581
parent0cb532f5dc5c7353cbe84ba8eba0aaf37f831d2c (diff)
downloadorg.eclipse.linuxtools-6502b9146405800c93d010f8a5bbcd63e8e6bdd0.zip
org.eclipse.linuxtools-6502b9146405800c93d010f8a5bbcd63e8e6bdd0.tar.gz
org.eclipse.linuxtools-6502b9146405800c93d010f8a5bbcd63e8e6bdd0.tar.bz2
Display exception in message dialog box in TmfEventsTablerefs/changes/82/11382/2
Change-Id: Iac0dd768257a020b1db69e4dd39a4709988e7aa9 Signed-off-by: Bernd Hufmann <bhufmann@gmail.com> Reviewed-on: https://git.eclipse.org/r/11382 Tested-by: Hudson CI Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
index e262b5e..172d9e7 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
@@ -130,7 +130,6 @@ import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ListDialog;
import org.eclipse.ui.ide.IDE;
@@ -644,12 +643,8 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
} else if (files.size() == 0){
displayException(new FileNotFoundException('\'' + cs.toString() + '\'' + '\n' + Messages.TmfEventsTable_OpenCallsiteNotFound));
}
- } catch (PartInitException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
} catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ displayException(e);
}
}
}