diff options
author | Michael Keppler | 2018-06-01 17:48:42 +0000 |
---|---|---|
committer | Michael Keppler | 2018-06-12 18:01:36 +0000 |
commit | 5b6cb2ead8eff86a37754ccf26334e9d01b9a3d8 (patch) | |
tree | 62213fb3209b588d3fbbc6f5c6a2d78c488a401c /org.eclipse.debug.ui/ui/org | |
parent | 1b8faf587e61f1bf23eb1a72da326da079208788 (diff) | |
download | eclipse.platform.debug-5b6cb2ead8eff86a37754ccf26334e9d01b9a3d8.tar.gz eclipse.platform.debug-5b6cb2ead8eff86a37754ccf26334e9d01b9a3d8.tar.xz eclipse.platform.debug-5b6cb2ead8eff86a37754ccf26334e9d01b9a3d8.zip |
Bug 535468 - Link with prototype does not set an initial selectionI20180613-0440I20180613-0300
Set an initial selection in the dialog to indicate what is currently the
linked prototype.
Change-Id: I9414b8f020b7b80de95464db35cdc4d2481a94c3
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Bug:535468
Diffstat (limited to 'org.eclipse.debug.ui/ui/org')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LinkPrototypeAction.java | 1 |
1 files changed, 1 insertions, 0 deletions
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$ |