Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Weiser2017-08-07 14:19:00 -0400
committerAlexander Kurtakov2017-10-11 08:23:27 -0400
commit0084dbf0e82b582071c3939565da2d264ea833d2 (patch)
tree53d6fad4b7266f10b01c65d3e92e37c5035c1109
parent5a566f0124d6ef079a237ff0a2bbee42e43f0da2 (diff)
downloadrt.equinox.p2-0084dbf0e82b582071c3939565da2d264ea833d2.tar.gz
rt.equinox.p2-0084dbf0e82b582071c3939565da2d264ea833d2.tar.xz
rt.equinox.p2-0084dbf0e82b582071c3939565da2d264ea833d2.zip
Bug 520131 - "Add Repository" dialog should use verbs
Change-Id: I15a6750e6351ddaa0948f878228529a834a17e0b Signed-off-by: David Weiser <david.weiser@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIMessages.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositoryNameAndLocationDialog.java5
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/messages.properties1
3 files changed, 5 insertions, 2 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 84a553a9d..5bb78ab44 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
@@ -170,6 +170,7 @@ public class ProvUIMessages extends NLS {
public static String AddRepositoryDialog_LocationLabel;
public static String AddRepositoryDialog_NameLabel;
public static String AddRepositoryDialog_Title;
+ public static String AddRepositoryDialog_addButtonLabel;
public static String AvailableIUGroup_LoadingRepository;
public static String AvailableIUGroup_NoSitesConfiguredDescription;
public static String AvailableIUGroup_NoSitesConfiguredExplanation;
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositoryNameAndLocationDialog.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositoryNameAndLocationDialog.java
index 02e554472..9c0d3a5b6 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositoryNameAndLocationDialog.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositoryNameAndLocationDialog.java
@@ -17,8 +17,9 @@ import org.eclipse.equinox.internal.p2.ui.ProvUIActivator;
import org.eclipse.equinox.internal.p2.ui.ProvUIMessages;
import org.eclipse.equinox.p2.operations.RepositoryTracker;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
-import org.eclipse.jface.dialogs.*;
import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.StatusDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.dnd.*;
@@ -51,7 +52,7 @@ public class RepositoryNameAndLocationDialog extends StatusDialog {
@Override
protected void createButtonsForButtonBar(Composite parent) {
- okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
+ okButton = createButton(parent, IDialogConstants.OK_ID, ProvUIMessages.AddRepositoryDialog_addButtonLabel, true);
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
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 b6fde26ab..81f71c78d 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
@@ -127,6 +127,7 @@ AddRepositoryDialog_Title=Add Repository
AddRepositoryDialog_InvalidURL=The provided location is not valid
AddRepositoryDialog_LocationLabel=&Location:
AddRepositoryDialog_NameLabel=&Name:
+AddRepositoryDialog_addButtonLabel=A&dd
UpdateActionRemediationJobName=Searching alternate solutions...
UpdateActionRemediationJobTask=The update operation cannot be completed as requested. Searching alternate solutions ...

Back to the top