From 622df3097ec6b1500ad0e5d0ca6e38d47053a115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9raphin=20Costa?= Date: Mon, 29 Apr 2024 12:15:53 +0200 Subject: [PATCH] [362] Fix the bug in the refresh of the layer tooltip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the VSM is changed, the tooltip of all layers is updated. But the tooltip list was never cleared between two menuShow. So the first n tooltip text were always the same and the updated tooltips were in an unreachable position (at the end) in the list. Bug: https://github.com/eclipse-sirius/sirius-desktop/issues/359 Signed-off-by: Séraphin Costa --- .../internal/editor/tabbar/AbstractMenuContributionItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/editor/tabbar/AbstractMenuContributionItem.java b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/editor/tabbar/AbstractMenuContributionItem.java index f0552c0cae..09a1801bed 100644 --- a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/editor/tabbar/AbstractMenuContributionItem.java +++ b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/editor/tabbar/AbstractMenuContributionItem.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2018 THALES GLOBAL SERVICES and others. + * Copyright (c) 2010, 2024 THALES GLOBAL SERVICES and others. * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -168,6 +168,7 @@ public void menuAboutToHide(IMenuManager manager) { @Override public void menuAboutToShow(IMenuManager manager) { + tooltips.clear(); menuShow(manager); } });