diff options
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);
}
}
|