diff options
author | Mengxin Zhu | 2012-12-05 08:59:39 +0000 |
---|---|---|
committer | Mengxin Zhu | 2012-12-05 08:59:39 +0000 |
commit | d0a7af13c7a61babf89d54d8a23797f00059b9c4 (patch) | |
tree | ad9e6d6662d8a141f66347ec5e79fbe5b7db8cdd | |
parent | 12d362448a4c77a128e5ff6d9321bd75232585b9 (diff) | |
download | rt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.tar.gz rt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.tar.xz rt.equinox.p2-d0a7af13c7a61babf89d54d8a23797f00059b9c4.zip |
Improve user experience when manually typing location in Import install wizard.v20121205-085939
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 e7eaf4527..9c60a00aa 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 e60710225..fc33368c4 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);
}
}
|