Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-05-02 03:48:07 +0000
committerMatthew Piggott2011-05-02 03:48:07 +0000
commitf1220a9b3a0fcc346dbb73d554230e4e9317cba1 (patch)
treed718a0b98677dcbb821af1b5c9ade814b0269361 /bundles/org.eclipse.equinox.p2.ui
parent408bb3da26e9e299d3d7de80658016ceaceb71eb (diff)
downloadrt.equinox.p2-f1220a9b3a0fcc346dbb73d554230e4e9317cba1.tar.gz
rt.equinox.p2-f1220a9b3a0fcc346dbb73d554230e4e9317cba1.tar.xz
rt.equinox.p2-f1220a9b3a0fcc346dbb73d554230e4e9317cba1.zip
Bug 335939 - [ui] License text not shown
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/AcceptLicensesWizardPage.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/AcceptLicensesWizardPage.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/AcceptLicensesWizardPage.java
index 6bba70523..5d79058ec 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/AcceptLicensesWizardPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/AcceptLicensesWizardPage.java
@@ -485,4 +485,15 @@ public class AcceptLicensesWizardPage extends WizardPage {
}
return new int[] {55, 45};
}
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.IDialogPage#setVisible(boolean)
+ */
+ public void setVisible(boolean visible) {
+ super.setVisible(visible);
+ if (visible && hasLicensesToAccept()) {
+ iuViewer.setSelection(new StructuredSelection(iuViewer.getTree().getItem(0).getData()), true);
+ }
+ }
}

Back to the top