diff options
author | Christian Georgi | 2013-08-20 15:47:56 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-11-06 04:43:48 -0500 |
commit | d7c42382aafc4b9ac02b7994f8add1131dac19f2 (patch) | |
tree | dbcc57f80b5dbfce6f481be2631b49dcd4adb182 | |
parent | 098a4c298343f84b1190633c60faf265b28a4ee7 (diff) | |
download | eclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.zip eclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.tar.gz eclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.tar.xz |
Bug 415522 - [IDE] Clean dialog should to reveal selection
Change-Id: I05db31f2e73009605f3ef3c33d4c713cf2bc1e72
Signed-off-by: Christian Georgi <christian.georgi@sap.com>
-rw-r--r-- | bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java index 08adea3..8064569 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2012 IBM Corporation and others. + * Copyright (c) 2004, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -290,6 +290,11 @@ public class CleanDialog extends MessageDialog { data.heightHint = IDialogConstants.ENTRY_FIELD_WIDTH; projectNames.getTable().setLayoutData(data); projectNames.setCheckedElements(selection); + Object[] checked = projectNames.getCheckedElements(); + // reveal first checked project unless in "all projects" mode + if (checked.length > 0 && !allButton.getSelection()) { + projectNames.reveal(checked[0]); + } //table is disabled to start because all button is selected projectNames.getTable().setEnabled(selectedButton.getSelection()); projectNames.addCheckStateListener(new ICheckStateListener() { |