From 23c625f114e49632f359ea2c14695fdec0c9fc8e Mon Sep 17 00:00:00 2001 From: Matthew Khouzam Date: Wed, 3 Dec 2014 13:25:47 -0500 Subject: [PATCH] tmf.ui: convert long list of catches to a multi-catch Change-Id: Ifc29e2d334fa940aa165dd461fbd9c3ff7d5bc8a Signed-off-by: Matthew Khouzam Reviewed-on: https://git.eclipse.org/r/37514 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann --- .../tmf/ui/viewers/events/TmfEventsTable.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/events/TmfEventsTable.java b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/events/TmfEventsTable.java index e01f4058c3..4a20099f5b 100644 --- a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/events/TmfEventsTable.java +++ b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/events/TmfEventsTable.java @@ -868,13 +868,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS context.addVariable(ExportToTextCommandHandler.TMF_EVENT_TABLE_COLUMNS_ID, exportColumns); handlerService.executeCommandInContext(cmd, null, context); - } catch (ExecutionException e) { - displayException(e); - } catch (NotDefinedException e) { - displayException(e); - } catch (NotEnabledException e) { - displayException(e); - } catch (NotHandledException e) { + } catch (ExecutionException | NotDefinedException | NotEnabledException | NotHandledException e) { displayException(e); } } -- 2.34.1