diff options
author | Fabian Pfaff | 2017-06-02 15:38:41 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-06-27 12:36:03 +0000 |
commit | a96d75268bfed5d13c8af53af3d26d1a134c60fe (patch) | |
tree | 86ab0a34f4c59f240f95ce35af096410370295b3 | |
parent | b37a78000139106dead4ef2c4efd5a9019f070f7 (diff) | |
download | rt.equinox.p2-a96d75268bfed5d13c8af53af3d26d1a134c60fe.tar.gz rt.equinox.p2-a96d75268bfed5d13c8af53af3d26d1a134c60fe.tar.xz rt.equinox.p2-a96d75268bfed5d13c8af53af3d26d1a134c60fe.zip |
bug 517732 - Delete history in installation dialog should use verbs
instead of OK
Change-Id: I2c9c70fc65f09dc35721567b06f92ce122424bf8
Signed-off-by: Fabian Pfaff <fabian.pfaff@vogella.com>
3 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIMessages.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIMessages.java index 59a93aa41..3bd1b590a 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIMessages.java +++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIMessages.java @@ -47,6 +47,7 @@ public class ProvUIMessages extends NLS { public static String RevertProfilePage_ConfirmDeleteMultipleConfigs; public static String RevertProfilePage_ConfirmDeleteSingleConfig; public static String RevertProfilePage_Delete; + public static String RevertProfilePage_CancelButtonLabel; public static String RevertProfilePage_DeleteMultipleConfigurationsTitle; public static String RevertProfilePage_DeleteSingleConfigurationTitle; public static String RevertProfilePage_DeleteTooltip; diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/messages.properties b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/messages.properties index a6bc216f7..3cede74b0 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/messages.properties +++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/messages.properties @@ -151,6 +151,7 @@ ColocatedRepositoryManipulator_AddSiteOperationLabel=Add Site RevertProfilePage_ConfirmDeleteMultipleConfigs=Deleting the selected configurations from the installation history will free up the disk space used to store the configurations. However, you will no longer be able to revert your installation to these configurations. Are you sure you want to delete the configurations? RevertProfilePage_ConfirmDeleteSingleConfig=Deleting the configuration from the installation history will free up the disk space used to store it. However, you will no longer be able to revert your installation to this configuration. Are you sure you want to delete it? RevertProfilePage_Delete=&Delete +RevertProfilePage_CancelButtonLabel=Cancel RevertProfilePage_DeleteMultipleConfigurationsTitle=Delete Configurations RevertProfilePage_DeleteSingleConfigurationTitle=Delete Configuration RevertProfilePage_DeleteTooltip=Delete the selected install configurations. diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RevertProfilePage.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RevertProfilePage.java index 1f763abca..d204af443 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RevertProfilePage.java +++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RevertProfilePage.java @@ -459,7 +459,7 @@ public class RevertProfilePage extends InstallationPage implements ICopyable { return; String title = selection.size() == 1 ? ProvUIMessages.RevertProfilePage_DeleteSingleConfigurationTitle : ProvUIMessages.RevertProfilePage_DeleteMultipleConfigurationsTitle; String confirmMessage = selection.size() == 1 ? ProvUIMessages.RevertProfilePage_ConfirmDeleteSingleConfig : ProvUIMessages.RevertProfilePage_ConfirmDeleteMultipleConfigs; - if (MessageDialog.openConfirm(configsViewer.getControl().getShell(), title, confirmMessage)) { + if (Window.OK == MessageDialog.open(MessageDialog.QUESTION, configsViewer.getControl().getShell(), title, confirmMessage, SWT.NONE, ProvUIMessages.RevertProfilePage_Delete, ProvUIMessages.RevertProfilePage_CancelButtonLabel)) { Iterator<?> iter = selection.iterator(); while (iter.hasNext()) { Object selected = iter.next(); |