summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMengxin Zhu2012-12-05 03:59:39 (EST)
committerMengxin Zhu2012-12-05 03:59:39 (EST)
commitd0a7af13c7a61babf89d54d8a23797f00059b9c4 (patch)
treead9e6d6662d8a141f66347ec5e79fbe5b7db8cdd
parent12d362448a4c77a128e5ff6d9321bd75232585b9 (diff)
downloadrt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.zip
rt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.tar.gz
rt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.tar.bz2
Improve user experience when manually typing location in Import install wizard.v20121205-085939
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage.java1
2 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
index e7eaf45..9c60a00 100644
--- a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
@@ -306,8 +306,7 @@ public abstract class AbstractPage extends WizardPage implements Listener {
restoreWidgetValues();
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
destinationNameField.setLayoutData(data);
- destinationNameField.addListener(SWT.Modify, this);
- destinationNameField.addListener(SWT.Selection, this);
+ destinationNameField.addListener(SWT.FocusOut, this);
destinationNameField.addListener(SWT.FocusIn, new Listener() {
public void handleEvent(Event event) {
@@ -580,6 +579,7 @@ public abstract class AbstractPage extends WizardPage implements Listener {
if (!selectedFileName.endsWith(Messages.EXTENSION_p2F.substring(1)))
selectedFileName += Messages.EXTENSION_p2F.substring(1);
setDestinationValue(selectedFileName);
+ handleDestinationChanged(selectedFileName);
}
}
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage.java
index e607102..fc33368 100644
--- a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportFromInstallationPage.java
@@ -283,6 +283,7 @@ public class ImportFromInstallationPage extends AbstractImportPage implements IS
if (selectedFileName != null) {
setDestinationValue(selectedFileName);
+ handleDestinationChanged(selectedFileName);
}
}