Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-05-03 11:44:55 -0400
committerMatthew Piggott2011-05-03 11:45:37 -0400
commit60e19c8750c1f5080f21fb780026c541befb15bb (patch)
tree398ce5d98a221590c38f8bec22d0e4b115b8e2df
parentd8153e07968c443e6fc80d1c3b75fa1a13fc37c0 (diff)
downloadm2e-core-60e19c8750c1f5080f21fb780026c541befb15bb.tar.gz
m2e-core-60e19c8750c1f5080f21fb780026c541befb15bb.tar.xz
m2e-core-60e19c8750c1f5080f21fb780026c541befb15bb.zip
Bug 343525 - Reveal one of the selected elements
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java5
1 files changed, 5 insertions, 0 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 a8cf410a..b4d39219 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
@@ -196,6 +196,11 @@ public class UpdateDepenciesDialog extends TitleAreaDialog implements IMenuListe
codebaseViewer.setSubtreeChecked(project, true);
}
+ // Reveal the first element
+ if(initialSelection.length > 0) {
+ codebaseViewer.reveal(initialSelection[0]);
+ }
+
Tree tree = codebaseViewer.getTree();
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 4);
gd.heightHint = 300;

Back to the top