Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-04-10 14:03:35 -0400
committerLars Vogel2018-04-18 12:08:01 -0400
commitc4364388c6e8f6f17b39c06f82f55475d2ee91b9 (patch)
treeca3a6c482cb041965d0f5c8a143412d8a9784204 /org.eclipse.ui.workbench.texteditor
parentfa39f4bc84753ab48031642fb487b38cae8c1cad (diff)
downloadeclipse.platform.text-c4364388c6e8f6f17b39c06f82f55475d2ee91b9.tar.gz
eclipse.platform.text-c4364388c6e8f6f17b39c06f82f55475d2ee91b9.tar.xz
eclipse.platform.text-c4364388c6e8f6f17b39c06f82f55475d2ee91b9.zip
Bug 533206 - Goto line dialog should use verbs
Change-Id: I6745543cb336231d19d71f232975aebc53b5522d Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConstructedEditorMessages.properties1
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java11
2 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConstructedEditorMessages.properties b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConstructedEditorMessages.properties
index 9b4a5b5f9..3712fb330 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConstructedEditorMessages.properties
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/ConstructedEditorMessages.properties
@@ -149,6 +149,7 @@ Editor.GotoLine.label=&Go to Line...
Editor.GotoLine.tooltip=Go to Line
Editor.GotoLine.image=
Editor.GotoLine.description=Go to Line
+Editor.GotoLine.button=&Go to Line
Editor.GotoLine.dialog.title=Go to Line
Editor.GotoLine.dialog.message=Enter line number (1..{0}):
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java
index 02741c0e4..7fcd613c4 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/GotoLineAction.java
@@ -13,6 +13,8 @@ package org.eclipse.ui.texteditor;
import java.util.ResourceBundle;
import org.eclipse.swt.custom.StyledText;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
@@ -86,7 +88,7 @@ public class GotoLineAction extends TextEditorAction {
*
* @since 2.0
*/
- static class GotoLineDialog extends InputDialog {
+ class GotoLineDialog extends InputDialog {
/*
* @see InputDialog#InputDialog(org.eclipse.swt.widgets.Shell, java.lang.String, java.lang.String, java.lang.String, org.eclipse.jface.dialogs.IInputValidator)
@@ -106,6 +108,13 @@ public class GotoLineAction extends TextEditorAction {
}
@Override
+ protected void createButtonsForButtonBar(Composite parent) {
+ super.createButtonsForButtonBar(parent);
+ Button button = getOkButton();
+ button.setText(GotoLineAction.this.fBundle.getString(fPrefix + "button")); //$NON-NLS-1$
+ }
+
+ @Override
protected int getDialogBoundsStrategy() {
return DIALOG_PERSISTLOCATION;
}

Back to the top