Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-18 11:05:33 -0400
committerMatthew Piggott2011-04-18 11:05:33 -0400
commitc582d2d9fca7494ff181057d8f48ac522a683225 (patch)
tree538631eceacf11375768880611c92edf733c1edd
parent609099e733b1c4196d53b163fe32e536a4796d48 (diff)
downloadm2e-core-c582d2d9fca7494ff181057d8f48ac522a683225.tar.gz
m2e-core-c582d2d9fca7494ff181057d8f48ac522a683225.tar.xz
m2e-core-c582d2d9fca7494ff181057d8f48ac522a683225.zip
UpdateDependenciesDialog - expand all elements
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
index 7fa8e341..f47cf9c4 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
@@ -32,7 +32,6 @@ import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
@@ -185,8 +184,8 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
});
projects = getMavenCodebases();
codebaseViewer.setInput(projects);
+ codebaseViewer.expandAll();
for(IProject project : initialSelection) {
- codebaseViewer.expandToLevel(project, TreeViewer.ALL_LEVELS);
codebaseViewer.setSubtreeChecked(project, true);
}
@@ -201,7 +200,9 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
selectAllBtn.setText("Select All");
selectAllBtn.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
- codebaseViewer.setAllChecked(true);
+ for(IProject project : projects) {
+ codebaseViewer.setSubtreeChecked(project, true);
+ }
}
public void widgetDefaultSelected(SelectionEvent e) {
@@ -214,7 +215,9 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
deselectAllBtn.setText("Deselect All");
deselectAllBtn.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
- codebaseViewer.setAllChecked(false);
+ for(IProject project : projects) {
+ codebaseViewer.setSubtreeChecked(project, false);
+ }
}
public void widgetDefaultSelected(SelectionEvent e) {

Back to the top