aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Georgi2013-08-20 15:47:56 (EDT)
committerGerrit Code Review @ Eclipse.org2013-11-06 04:43:48 (EST)
commitd7c42382aafc4b9ac02b7994f8add1131dac19f2 (patch)
treedbcc57f80b5dbfce6f481be2631b49dcd4adb182
parent098a4c298343f84b1190633c60faf265b28a4ee7 (diff)
downloadeclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.zip
eclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.tar.gz
eclipse.platform.ui-d7c42382aafc4b9ac02b7994f8add1131dac19f2.tar.bz2
Bug 415522 - [IDE] Clean dialog should to reveal selectionrefs/changes/67/15667/5
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.java7
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() {