Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-02-20 08:24:25 -0500
committerThomas Wolf2018-02-27 01:30:21 -0500
commite89420abccdf6b7fe8ad2ef7a8277af4826f5b49 (patch)
tree405b444161850dbe8d65bd117010d8555d2863e0 /org.eclipse.egit.ui/src/org/eclipse
parentab8291244ab9478bfecec79e03b2e83b34fe0dd9 (diff)
downloadegit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.tar.gz
egit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.tar.xz
egit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.zip
Delete Repository dialog: use "Delete" instead of "OK" for button
Bug: 531328 Change-Id: Id402627371e0f81ce24f70cc50c90b0b52b0721f Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java2
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java9
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties1
3 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
index cb9424309..73f5ee70b 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
@@ -3512,6 +3512,8 @@ public class UIText extends NLS {
public static String DeleteRepositoryConfirmDialog_DeleteRepositoryNoUndoWarning;
/** */
+ public static String DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton;
+ /** */
public static String DeleteRepositoryConfirmDialog_DeleteRepositoryTitle;
/** */
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
index 99183f9b9..bff810e7d 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
@@ -188,4 +188,13 @@ public class DeleteRepositoryConfirmDialog extends TitleAreaDialog {
else
setMessage(UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmMessage);
}
+
+ @Override
+ protected void createButtonsForButtonBar(Composite parent) {
+ createButton(parent, IDialogConstants.OK_ID,
+ UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton,
+ true);
+ createButton(parent, IDialogConstants.CANCEL_ID,
+ IDialogConstants.CANCEL_LABEL, false);
+ }
}
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties
index 7c595566e..c64a5cf47 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties
@@ -1249,6 +1249,7 @@ DeleteRepositoryConfirmDialog_DeleteRepositoryTitle=Delete Repository ''{0}''
DeleteRepositoryConfirmDialog_DeleteRepositoryWindowTitle=Delete Repository
DeleteRepositoryConfirmDialog_DeleteWorkingDirectoryCheckbox=Also delete &working tree:
DeleteRepositoryConfirmDialog_DeleteProjectsCheckbox=Remove {0,choice,1#the project|1<the {0} projects} in the repository from the workspace
+DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton = &Delete
DeleteTagOnCommitHandler_SelectTagDialogMessage=Please select the tags you want to delete
DeleteTagOnCommitHandler_SelectTagDialogTitle=Delete Tags
DeleteTagCommand_deletingTagsProgress=Deleting tags

Back to the top