commit | 692444718cd0b69c1a892bff787724de3affa1f4 | [log] [tgz] |
---|---|---|
author | Marco Miller <marco.miller@ericsson.com> | Wed Jun 01 13:15:45 2022 -0400 |
committer | Matthew Khouzam <matthew.khouzam@ericsson.com> | Wed Jun 01 21:03:37 2022 -0400 |
tree | d686328172eef87976bd5e3f2a4ed83b0dabc9f6 | |
parent | 66d92d21da45cfee8edf90f94848ab8115a047c9 [diff] |
tmf.ui: Fix sonarlint issues in TimeGraphLegend Change-Id: I22ef19c23d459dc2d782d8a7cb0d5c3e56e08f44 Signed-off-by: Marco Miller <marco.miller@ericsson.com> Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/193880 Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org> Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com> Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/dialogs/TimeGraphLegend.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/dialogs/TimeGraphLegend.java index f62e4d4..4c6dd69 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/dialogs/TimeGraphLegend.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/dialogs/TimeGraphLegend.java
@@ -133,9 +133,7 @@ // Set the minimum size to avoid 0-sized legends from user resize parent.getShell().setMinimumSize(150, 150); - composite.addDisposeListener((e) -> { - fResourceManager.dispose(); - }); + composite.addDisposeListener(e -> fResourceManager.dispose()); return composite; }