From 5b6cb2ead8eff86a37754ccf26334e9d01b9a3d8 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Fri, 1 Jun 2018 19:48:42 +0200 Subject: Bug 535468 - Link with prototype does not set an initial selection Set an initial selection in the dialog to indicate what is currently the linked prototype. Change-Id: I9414b8f020b7b80de95464db35cdc4d2481a94c3 Signed-off-by: Michael Keppler Bug:535468 --- .../debug/internal/ui/launchConfigurations/LinkPrototypeAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LinkPrototypeAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LinkPrototypeAction.java index a1b28b72d..1bbdf07c9 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LinkPrototypeAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LinkPrototypeAction.java @@ -64,6 +64,7 @@ public class LinkPrototypeAction extends AbstractLaunchConfigurationAction { DecoratingLabelProvider labelProvider = new DecoratingLabelProvider(DebugUITools.newDebugModelPresentation(), PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()); ElementListSelectionDialog selectPrototypeDialog = new ElementListSelectionDialog(getShell(), labelProvider); selectPrototypeDialog.setElements(prototypes); + selectPrototypeDialog.setInitialSelections(firstLaunchConfiguration.getPrototype()); selectPrototypeDialog.setMultipleSelection(false); selectPrototypeDialog.setEmptySelectionMessage("You have to select a prototype."); //$NON-NLS-1$ selectPrototypeDialog.setTitle("Please select a prototype"); //$NON-NLS-1$ -- cgit v1.2.3