Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2015-06-05 11:57:05 -0400
committerMatthias Sohn2015-06-07 19:26:01 -0400
commitc62ffbf50a7ca2ca821ffc1f749705b61be4d0ef (patch)
tree97432135cbece8bc214c6c787b1215d72f19528d
parente441bd6794aaecd4de88b9d73b2b9f9cba218634 (diff)
downloadegit-c62ffbf50a7ca2ca821ffc1f749705b61be4d0ef.tar.gz
egit-c62ffbf50a7ca2ca821ffc1f749705b61be4d0ef.tar.xz
egit-c62ffbf50a7ca2ca821ffc1f749705b61be4d0ef.zip
Fix that double click is needed to "Check/Uncheck All Repositories"
When using the add existing repository wizard it was necessary to double click "Check All Repositories"/"Uncheck All Repositories" to check/uncheck listed repositories Bug: 450946 Change-Id: Iba2096d051736e71ae9f1c4fd516ceef7a8917cf Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
index 1ee77bbd8b..c91c9e6203 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositorySearchDialog.java
@@ -62,6 +62,7 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
+import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.PatternFilter;
import org.osgi.service.prefs.BackingStoreException;
@@ -352,7 +353,9 @@ public class RepositorySearchDialog extends WizardPage {
@Override
public void widgetSelected(SelectionEvent e) {
- fTreeViewer.setAllChecked(true);
+ for (TreeItem item : fTreeViewer.getTree().getItems()) {
+ fTreeViewer.setSubtreeChecked(item.getData(), true);
+ }
enableOk();
}
@@ -369,7 +372,9 @@ public class RepositorySearchDialog extends WizardPage {
@Override
public void widgetSelected(SelectionEvent e) {
- fTreeViewer.setAllChecked(false);
+ for (TreeItem item : fTreeViewer.getTree().getItems()) {
+ fTreeViewer.setSubtreeChecked(item.getData(), false);
+ }
enableOk();
}

Back to the top