|
From: <caw...@us...> - 2007-01-22 21:18:54
|
Revision: 1850
http://svn.sourceforge.net/rubyeclipse/?rev=1850&view=rev
Author: cawilliams
Date: 2007-01-22 13:18:52 -0800 (Mon, 22 Jan 2007)
Log Message:
-----------
try to move us towards using only subclasses of NLS for translations - so we get accurate information on what strings are missing and what are unused.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CompareResultsAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CopyTraceAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CounterPanel.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTab.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTrace.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenEditorAtLineAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenSymbolAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/RerunAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/ScrollLockAction.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.properties
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/RubyClassSelector.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitLaunchShortcut.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitMainTab.java
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CompareResultsAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CompareResultsAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CompareResultsAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -19,9 +19,9 @@
public CompareResultsAction(FailureTrace view) {
- super(TestUnitMessages.getString("CompareResultsAction.label")); //$NON-NLS-1$
- setDescription(TestUnitMessages.getString("CompareResultsAction.description")); //$NON-NLS-1$
- setToolTipText(TestUnitMessages.getString("CompareResultsAction.tooltip")); //$NON-NLS-1$
+ super(TestUnitMessages.CompareResultsAction_label);
+ setDescription(TestUnitMessages.CompareResultsAction_description);
+ setToolTipText(TestUnitMessages.CompareResultsAction_tooltip);
setDisabledImageDescriptor(TestunitPlugin.getImageDescriptor("dlcl16/compare.gif")); //$NON-NLS-1$
setHoverImageDescriptor(TestunitPlugin.getImageDescriptor("elcl16/compare.gif")); //$NON-NLS-1$
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CopyTraceAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CopyTraceAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CopyTraceAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -38,7 +38,7 @@
* Constructor for CopyTraceAction.
*/
public CopyTraceAction(FailureTrace view, Clipboard clipboard) {
- super(TestUnitMessages.getString("CopyTrace.action.label")); //$NON-NLS-1$
+ super(TestUnitMessages.CopyTrace_action_label);
Assert.isNotNull(clipboard);
// TODO Show help!
//WorkbenchHelp.setHelp(this, ITestUnitHelpContextIds.COPYTRACE_ACTION);
@@ -62,7 +62,7 @@
} catch (SWTError e){
if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD)
throw e;
- if (MessageDialog.openQuestion(fView.getComposite().getShell(), TestUnitMessages.getString("CopyTraceAction.problem"), TestUnitMessages.getString("CopyTraceAction.clipboard_busy"))) //$NON-NLS-1$ //$NON-NLS-2$
+ if (MessageDialog.openQuestion(fView.getComposite().getShell(), TestUnitMessages.CopyTraceAction_problem, TestUnitMessages.CopyTraceAction_clipboard_busy))
run();
}
}
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CounterPanel.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CounterPanel.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/CounterPanel.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -42,9 +42,9 @@
gridLayout.marginWidth= 0;
setLayout(gridLayout);
- fNumberOfRuns= createLabel(TestUnitMessages.getString("CounterPanel.label.runs"), null, " 0/0 "); //$NON-NLS-1$ //$NON-NLS-2$
- fNumberOfErrors= createLabel(TestUnitMessages.getString("CounterPanel.label.errors"), fErrorIcon, " 0 "); //$NON-NLS-1$ //$NON-NLS-2$
- fNumberOfFailures= createLabel(TestUnitMessages.getString("CounterPanel.label.failures"), fFailureIcon, " 0 "); //$NON-NLS-1$ //$NON-NLS-2$
+ fNumberOfRuns= createLabel(TestUnitMessages.CounterPanel_label_runs, null, " 0/0 "); //$NON-NLS-1$
+ fNumberOfErrors= createLabel(TestUnitMessages.CounterPanel_label_errors, fErrorIcon, " 0 "); //$NON-NLS-1$
+ fNumberOfFailures= createLabel(TestUnitMessages.CounterPanel_label_failures, fFailureIcon, " 0 "); //$NON-NLS-1$
addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
@@ -95,7 +95,7 @@
}
public void setRunValue(int value) {
- String runString= TestUnitMessages.getFormattedString("CounterPanel.runcount", new String[] { Integer.toString(value), Integer.toString(fTotal) }); //$NON-NLS-1$
+ String runString= TestUnitMessages.getFormattedString(TestUnitMessages.CounterPanel_runcount, new String[] { Integer.toString(value), Integer.toString(fTotal) });
fNumberOfRuns.setText(runString);
fNumberOfRuns.redraw();
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTab.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTab.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTab.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -82,7 +82,7 @@
fTable.setLayoutData(gridData);
failureTab.setControl(composite);
- failureTab.setToolTipText(TestUnitMessages.getString("FailureRunView.tab.tooltip")); //$NON-NLS-1$
+ failureTab.setToolTipText(TestUnitMessages.FailureRunView_tab_tooltip);
initMenu();
addListeners();
@@ -103,7 +103,7 @@
}
public String getName() {
- return TestUnitMessages.getString("FailureRunView.tab.title"); //$NON-NLS-1$
+ return TestUnitMessages.FailureRunView_tab_title;
}
public String getSelectedTestId() {
@@ -207,7 +207,7 @@
}
private void updateTableItem(TestRunInfo testInfo, TableItem tableItem) {
- String label = TestUnitMessages.getFormattedString("FailureRunView.labelfmt", new String[] { testInfo.getTestMethodName(), testInfo.getClassName()}); //$NON-NLS-1$
+ String label = TestUnitMessages.getFormattedString(TestUnitMessages.FailureRunView_labelfmt, new String[] { testInfo.getTestMethodName(), testInfo.getClassName()});
tableItem.setText(label);
if (testInfo.getStatus() == ITestRunListener.STATUS_FAILURE)
tableItem.setImage(fFailureIcon);
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTrace.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTrace.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/FailureTrace.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -251,7 +251,7 @@
private final StackTraceLine trace;
public OpenEditorAction(StackTraceLine trace) {
- super(TestUnitMessages.getString("OpenEditor.action.label"));
+ super(TestUnitMessages.OpenEditor_action_label);
this.trace = trace;
}
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenEditorAtLineAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenEditorAtLineAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenEditorAtLineAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -46,7 +46,7 @@
* Constructor for OpenEditorAtLineAction.
*/
public OpenEditorAtLineAction(TestUnitView testRunner, String fileName, int line) {
- super(TestUnitMessages.getString("OpenEditorAction.action.label"));
+ super(TestUnitMessages.OpenEditorAction_action_label);
// TODO Uncomment and fix!
// WorkbenchHelp.setHelp(this,
// IJUnitHelpContextIds.OPENEDITORATLINE_ACTION);
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenSymbolAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenSymbolAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/OpenSymbolAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -36,7 +36,7 @@
}
public OpenSymbolAction(Symbol symbol, ISymbolFinder finder, Shell shell, String title) {
- super(TestUnitMessages.getString("OpenEditor.action.label"));
+ super(TestUnitMessages.OpenEditor_action_label);
this.shell = shell;
this.symbol = symbol;
this.finder = finder;
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/RerunAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/RerunAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/RerunAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -29,9 +29,9 @@
public RerunAction(TestUnitView runner, String testId, String className, String testName, String launchMode) {
super();
if (launchMode.equals(ILaunchManager.RUN_MODE))
- setText(TestUnitMessages.getString("RerunAction.label.run")); //$NON-NLS-1$
+ setText(TestUnitMessages.RerunAction_label_run);
else if (launchMode.equals(ILaunchManager.DEBUG_MODE))
- setText(TestUnitMessages.getString("RerunAction.label.debug")); //$NON-NLS-1$
+ setText(TestUnitMessages.RerunAction_label_debug);
// TODO Re-enable help text
//WorkbenchHelp.setHelp(this, ITestUnitHelpContextIds.RERUN_ACTION);
fTestRunner= runner;
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/ScrollLockAction.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/ScrollLockAction.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/ScrollLockAction.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -20,9 +20,9 @@
private TestUnitView fRunnerViewPart;
public ScrollLockAction(TestUnitView viewer) {
- super(TestUnitMessages.getString("ScrollLockAction.action.label")); //$NON-NLS-1$
+ super(TestUnitMessages.ScrollLockAction_action_label);
fRunnerViewPart = viewer;
- setToolTipText(TestUnitMessages.getString("ScrollLockAction.action.tooltip")); //$NON-NLS-1$
+ setToolTipText(TestUnitMessages.ScrollLockAction_action_tooltip);
setDisabledImageDescriptor(TestunitPlugin.getImageDescriptor("dlcl16/lock.gif")); //$NON-NLS-1$
setHoverImageDescriptor(TestunitPlugin.getImageDescriptor("elcl16/lock.gif")); //$NON-NLS-1$
setImageDescriptor(TestunitPlugin.getImageDescriptor("elcl16/lock.gif")); //$NON-NLS-1$
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -103,8 +103,8 @@
private class ExpandAllAction extends Action {
public ExpandAllAction() {
- setText(TestUnitMessages.getString("ExpandAllAction.text")); //$NON-NLS-1$
- setToolTipText(TestUnitMessages.getString("ExpandAllAction.tooltip")); //$NON-NLS-1$
+ setText(TestUnitMessages.ExpandAllAction_text);
+ setToolTipText(TestUnitMessages.ExpandAllAction_tooltip);
}
public void run() {
@@ -131,7 +131,7 @@
testTreePanel.setLayoutData(gridData);
hierarchyTab.setControl(testTreePanel);
- hierarchyTab.setToolTipText(TestUnitMessages.getString("HierarchyRunView.tab.tooltip")); //$NON-NLS-1$
+ hierarchyTab.setToolTipText(TestUnitMessages.HierarchyRunView_tab_tooltip);
fTree = new Tree(testTreePanel, SWT.V_SCROLL | SWT.SINGLE);
gridData = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);
@@ -189,7 +189,7 @@
}
public String getName() {
- return TestUnitMessages.getString("HierarchyRunView.tab.title"); //$NON-NLS-1$
+ return TestUnitMessages.HierarchyRunView_tab_title;
}
public void setSelectedTest(String testId) {
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -1,39 +1,86 @@
package org.rubypeople.rdt.internal.testunit.ui;
import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
+
public class TestUnitMessages {
private static final String BUNDLE_NAME= "org.rubypeople.rdt.internal.testunit.ui.TestUnitMessages"; //$NON-NLS-1$
+
+ private TestUnitMessages() {}
+
+ public static String LaunchConfigurationTab_RubyEntryPoint_allTestCases;
+ public static String LaunchConfigurationTab_RubyEntryPoint_classSelectorMessage;
+ public static String LaunchConfigurationTab_RubyEntryPoint_classLabel;
+ public static String CompareResultsAction_label;
+ public static String CompareResultsAction_description;
+ public static String CompareResultsAction_tooltip;
+ public static String CopyTrace_action_label;
+ public static String CopyTraceAction_problem;
+ public static String CopyTraceAction_clipboard_busy;
+ public static String CounterPanel_label_runs;
+ public static String CounterPanel_label_errors;
+ public static String CounterPanel_label_failures;
+ public static String FailureRunView_tab_tooltip;
+ public static String FailureRunView_tab_title;
+ public static String OpenEditor_action_label;
+ public static String OpenEditorAction_action_label;
+ public static String RerunAction_label_debug;
+ public static String RerunAction_label_run;
+ public static String TestRunnerViewPart_label_failure;
+ public static String TestRunnerViewPart_error_cannotrerun;
+ public static String TestRunnerViewPart_cannotrerun_title;
+ public static String TestRunnerViewPart_cannotrerurn_message;
+ public static String TestRunnerViewPart_message_launching;
+ public static String TestRunnerViewPart_message_stopped;
+ public static String TestRunnerViewPart_message_terminated;
+ public static String TestRunnerViewPart_jobName;
+ public static String TestRunnerViewPart_terminate_title;
+ public static String TestRunnerViewPart_terminate_message;
+ public static String TestRunnerViewPart_rerunaction_label;
+ public static String TestRunnerViewPart_rerunaction_tooltip;
+ public static String LaunchTestAction_message_selectConfiguration;
+ public static String LaunchTestAction_message_selectDebugConfiguration;
+ public static String LaunchTestAction_message_selectRunConfiguration;
+ public static String Dialog_launchWithoutSelectedInterpreter_title;
+ public static String Dialog_launchWithoutSelectedInterpreter;
+ public static String LaunchConfigurationTab_RubyEntryPoint_allTestMethods;
+ public static String LaunchConfigurationTab_RubyEntryPoint_methodLabel;
+ public static String JUnitMainTab_tab_label;
+ public static String ExpandAllAction_text;
+ public static String ExpandAllAction_tooltip;
+ public static String HierarchyRunView_tab_tooltip;
+ public static String HierarchyRunView_tab_title;
+ public static String ScrollLockAction_action_label;
+ public static String ScrollLockAction_action_tooltip;
+ public static String RubyClassSelector_Title;
+ public static String CounterPanel_runcount;
+ public static String FailureRunView_labelfmt;
+ public static String TestRunnerViewPart_message_error;
+ public static String TestRunnerViewPart_message_failure;
+ public static String TestRunnerViewPart_message_success;
+ public static String TestRunnerViewPart_message_finish;
+ public static String TestRunnerViewPart_message_started;
+ public static String TestRunnerViewPart_configName;
- private static final ResourceBundle RESOURCE_BUNDLE= ResourceBundle.getBundle(BUNDLE_NAME);
-
- private TestUnitMessages() {
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, TestUnitMessages.class);
}
-
+
/**
* Gets a string from the resource bundle and formats it with the argument
*
* @param key the string used to get the bundle value, must not be null
*/
public static String getFormattedString(String key, Object arg) {
- return MessageFormat.format(getString(key), new Object[] { arg });
+ return MessageFormat.format(key, new Object[] { arg });
}
/**
* Gets a string from the resource bundle and formats it with arguments
*/
public static String getFormattedString(String key, Object[] args) {
- return MessageFormat.format(getString(key), args);
+ return MessageFormat.format(key, args);
}
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
}
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.properties
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.properties 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitMessages.properties 2007-01-22 21:18:52 UTC (rev 1850)
@@ -1,162 +1,162 @@
-OpenEditor.action.label=Open
+OpenEditor_action_label=Open
-CopyTrace.action.label=Copy Trace
-CopyTraceAction.problem=Problem Copying to Clipboard
-CopyTraceAction.clipboard_busy=There was a problem when accessing the system clipboard. Retry?
+CopyTrace_action_label=Copy Trace
+CopyTraceAction_problem=Problem Copying to Clipboard
+CopyTraceAction_clipboard_busy=There was a problem when accessing the system clipboard. Retry?
-CopyFailureList.action.label=Copy Failure List
-CopyFailureList.problem=Problem Copying Failure List to Clipboard
-CopyFailureList.clipboard_busy=There was a problem when accessing the system clipboard. Retry?
+CopyFailureList_action_label=Copy Failure List
+CopyFailureList_problem=Problem Copying Failure List to Clipboard
+CopyFailureList_clipboard_busy=There was a problem when accessing the system clipboard. Retry?
-CounterPanel.label.runs=Runs:
-CounterPanel.label.errors=Errors:
-CounterPanel.label.failures=Failures:
-CounterPanel.runcount= {0}/{1}
+CounterPanel_label_runs=Runs:
+CounterPanel_label_errors=Errors:
+CounterPanel_label_failures=Failures:
+CounterPanel_runcount= {0}/{1}
-FailureRunView.tab.tooltip=Failures and Errors
-FailureRunView.tab.title=Failures
-FailureRunView.labelfmt= {0} - {1}
+FailureRunView_tab_tooltip=Failures and Errors
+FailureRunView_tab_title=Failures
+FailureRunView_labelfmt= {0} - {1}
-HierarchyRunView.tab.tooltip=Test Hierarchy
-HierarchyRunView.tab.title=Hierarchy
+HierarchyRunView_tab_tooltip=Test Hierarchy
+HierarchyRunView_tab_title=Hierarchy
-JUnitPlugin.error.cannotshow=Could not show JUnit Result View
-JUnitPlugin.searching=Searching
+JUnitPlugin_error_cannotshow=Could not show JUnit Result View
+JUnitPlugin_searching=Searching
-JUnitPreferencePage.description=JUnit settings:
-JUnitPreferencePage.addfilterbutton.label=Add &Filter
-JUnitPreferencePage.addfilterbutton.tooltip=Type the Name of a New Stack Filter
-JUnitPreferencePage.addtypebutton.label=Add &Class...
-JUnitPreferencePage.addtypebutton.tooltip=Choose a Java Type and Add It to Stack Filters
-JUnitPreferencePage.addpackagebutton.label=Add &Packages...
-JUnitPreferencePage.addpackagebutton.tooltip=Choose Package(s) to Add to Stack Filters
-JUnitPreferencePage.removefilterbutton.label=&Remove
-JUnitPreferencePage.removefilterbutton.tooltip=Remove All Selected Stack Filters
-JUnitPreferencePage.enableallbutton.label=&Enable All
-JUnitPreferencePage.enableallbutton.tooltip=Enables All Stack Filters
-JUnitPreferencePage.disableallbutton.label=Disa&ble All
-JUnitPreferencePage.disableallbutton.tooltip=Disables All Stack Filters
-JUnitPreferencePage.filter.label=&Stack trace filter patterns (changes only apply to new test runs):
-JUnitPreferencePage.adddialog.title=Add Stack Filter Pattern
-JUnitPreferencePage.addialog.prompt=Enter Filter Pattern:
-JUnitPreferencePage.showcheck.label=Show the JUnit results &view only when an error or failure occurs
-JUnitPreferencePage.invalidstepfilterreturnescape=Invalid stack filter. Press Enter to continue editing or Escape to cancel.
-JUnitPreferencePage.addtypedialog.title=Add Class to Stack Filters
-JUnitPreferencePage.addtypedialog.message=&Select a class to filter in the failure stack trace.
-JUnitPreferencePage.addtypedialog.error.message=Could not open type selection dialog for stack filters.
-JUnitPreferencePage.addpackagedialog.title=Add Packages to Stack Filters
-JUnitPreferencePage.addpackagedialog.message=&Select a package to filter in the failure stack trace.
-JUnitPreferencePage.addpackagedialog.error.message=Could not open package selection dialog for stack filters.
+JUnitPreferencePage_description=JUnit settings:
+JUnitPreferencePage_addfilterbutton_label=Add &Filter
+JUnitPreferencePage_addfilterbutton_tooltip=Type the Name of a New Stack Filter
+JUnitPreferencePage_addtypebutton_label=Add &Class...
+JUnitPreferencePage_addtypebutton_tooltip=Choose a Java Type and Add It to Stack Filters
+JUnitPreferencePage_addpackagebutton_label=Add &Packages...
+JUnitPreferencePage_addpackagebutton_tooltip=Choose Package(s) to Add to Stack Filters
+JUnitPreferencePage_removefilterbutton_label=&Remove
+JUnitPreferencePage_removefilterbutton_tooltip=Remove All Selected Stack Filters
+JUnitPreferencePage_enableallbutton_label=&Enable All
+JUnitPreferencePage_enableallbutton_tooltip=Enables All Stack Filters
+JUnitPreferencePage_disableallbutton_label=Disa&ble All
+JUnitPreferencePage_disableallbutton_tooltip=Disables All Stack Filters
+JUnitPreferencePage_filter_label=&Stack trace filter patterns (changes only apply to new test runs):
+JUnitPreferencePage_adddialog_title=Add Stack Filter Pattern
+JUnitPreferencePage_addialog_prompt=Enter Filter Pattern:
+JUnitPreferencePage_showcheck_label=Show the JUnit results &view only when an error or failure occurs
+JUnitPreferencePage_invalidstepfilterreturnescape=Invalid stack filter. Press Enter to continue editing or Escape to cancel.
+JUnitPreferencePage_addtypedialog_title=Add Class to Stack Filters
+JUnitPreferencePage_addtypedialog_message=&Select a class to filter in the failure stack trace.
+JUnitPreferencePage_addtypedialog_error_message=Could not open type selection dialog for stack filters.
+JUnitPreferencePage_addpackagedialog_title=Add Packages to Stack Filters
+JUnitPreferencePage_addpackagedialog_message=&Select a package to filter in the failure stack trace.
+JUnitPreferencePage_addpackagedialog_error_message=Could not open package selection dialog for stack filters.
-OpenEditorAction.action.label=&Go to File
-OpenEditorAction.error.cannotopen.title=Cannot Open Editor
-OpenEditorAction.error.cannotopen.message=Test class not found in selected project
-OpenEditorAction.error.dialog.title=Error
-OpenEditorAction.error.dialog.message=Cannot open editor
-OpenEditorAction.message.cannotopen=Cannot open editor
+OpenEditorAction_action_label=&Go to File
+OpenEditorAction_error_cannotopen_title=Cannot Open Editor
+OpenEditorAction_error_cannotopen_message=Test class not found in selected project
+OpenEditorAction_error_dialog_title=Error
+OpenEditorAction_error_dialog_message=Cannot open editor
+OpenEditorAction_message_cannotopen=Cannot open editor
-OpenTestAction.error.title=Go To Test
-OpenTestAction.error.methodNoFound=Method ''{0}'' not found. Opening the test class.
+OpenTestAction_error_title=Go To Test
+OpenTestAction_error_methodNoFound=Method ''{0}'' not found. Opening the test class.
-TestRunnerViewPart.jobName=Update JUnit
-TestRunnerViewPart.stopaction.text=Stop JUnit Test
-TestRunnerViewPart.stopaction.tooltip=Stop JUnit Test Run
-TestRunnerViewPart.rerunaction.label=Rerun Last Test
-TestRunnerViewPart.rerunaction.tooltip=Rerun Last Test
-TestRunnerViewPart.error.cannotrerun=Could not rerun test
-TestRunnerViewPart.message.terminated=Terminated
-TestRunnerViewPart.message.launching=Launching...
-TestRunnerViewPart.cannotrerun.title=Rerun Test
-TestRunnerViewPart.cannotrerurn.message=To rerun tests they must be launched under the debugger\nand \'Keep Test::Unit running\' must be set in the launch configuration.
-TestRunnerViewPart.message.cannotshow=Could not show JUnit Result View
-TestRunnerViewPart.label.failure=Failure Trace
-TestRunnerViewPart.message.finish= Finished after {0} seconds
-TestRunnerViewPart.message.stopped= Stopped
-TestRunnerViewPart.message.started= {0} - {1}
-TestRunnerViewPart.message.failure= {0}({1}) had a failure
-TestRunnerViewPart.message.error= {0}({1}) had an error
-TestRunnerViewPart.message.success= {0}({1}) was successful
-TestRunnerViewPart.title= JUnit ({0})
-TestRunnerViewPart.title_no_type=JUnit
-TestRunnerViewPart.configName=Rerun {0}
-TestRunnerViewPart.toggle.vertical.label=&Vertical View Orientation
-TestRunnerViewPart.toggle.horizontal.label=&Horizontal View Orientation
-TestRunnerViewPart.toggle.automatic.label=&Automatic View Orientation
-TestRunnerViewPart.terminate.title=Run Last Test
-TestRunnerViewPart.terminate.message=Terminate currently running tests?
+TestRunnerViewPart_jobName=Update JUnit
+TestRunnerViewPart_stopaction_text=Stop JUnit Test
+TestRunnerViewPart_stopaction_tooltip=Stop JUnit Test Run
+TestRunnerViewPart_rerunaction_label=Rerun Last Test
+TestRunnerViewPart_rerunaction_tooltip=Rerun Last Test
+TestRunnerViewPart_error_cannotrerun=Could not rerun test
+TestRunnerViewPart_message_terminated=Terminated
+TestRunnerViewPart_message_launching=Launching...
+TestRunnerViewPart_cannotrerun_title=Rerun Test
+TestRunnerViewPart_cannotrerurn_message=To rerun tests they must be launched under the debugger\nand \'Keep Test::Unit running\' must be set in the launch configuration.
+TestRunnerViewPart_message_cannotshow=Could not show JUnit Result View
+TestRunnerViewPart_label_failure=Failure Trace
+TestRunnerViewPart_message_finish= Finished after {0} seconds
+TestRunnerViewPart_message_stopped= Stopped
+TestRunnerViewPart_message_started= {0} - {1}
+TestRunnerViewPart_message_failure= {0}({1}) had a failure
+TestRunnerViewPart_message_error= {0}({1}) had an error
+TestRunnerViewPart_message_success= {0}({1}) was successful
+TestRunnerViewPart_title= JUnit ({0})
+TestRunnerViewPart_title_no_type=JUnit
+TestRunnerViewPart_configName=Rerun {0}
+TestRunnerViewPart_toggle_vertical_label=&Vertical View Orientation
+TestRunnerViewPart_toggle_horizontal_label=&Horizontal View Orientation
+TestRunnerViewPart_toggle_automatic_label=&Automatic View Orientation
+TestRunnerViewPart_terminate_title=Run Last Test
+TestRunnerViewPart_terminate_message=Terminate currently running tests?
-JUnitBaseLaunchConfiguration.error.invalidproject=Invalid project specified
-JUnitBaseLaunchConfiguration.error.novmrunner=Internal error: JRE {0} does not specify a VM Runner
-JUnitBaseLaunchConfiguration.error.notests=No tests found
+JUnitBaseLaunchConfiguration_error_invalidproject=Invalid project specified
+JUnitBaseLaunchConfiguration_error_novmrunner=Internal error: JRE {0} does not specify a VM Runner
+JUnitBaseLaunchConfiguration_error_notests=No tests found
-JUnitMainTab.label.oneTest=&Run a single test
-JUnitMainTab.label.project=&Project:
-JUnitMainTab.label.browse=&Browse...
-JUnitMainTab.label.test=T&est class:
-JUnitMainTab.label.search=&Search...
-JUnitMainTab.label.containerTest=Run &all tests in the selected project, package or source folder:
-JUnitMainTab.label.keeprunning=&Keep Test::Unit running after a test run when debugging
-JUnitMainTab.testdialog.title=Test Selection
-JUnitMainTab.testdialog.message=Choose a test case or test suite:
-JUnitMainTab.projectdialog.title=Project Selection
-JUnitMainTab.projectdialog.message=Choose a project to constrain the search for main types:
-JUnitMainTab.tab.label=Test
-JUnitMainTab.label.defaultpackage=(default package)
-JUnitMainTab.label.method=Test method:
-JUnitMainTab.folderdialog.title=Folder Selection
-JUnitMainTab.folderdialog.message=Choose a Project, Source Folder or Package:
-JUnitMainTab.error.projectnotdefined=Project not specified
-JUnitMainTab.error.projectnotexists=Project does not exist
-JUnitMainTab.error.notJavaProject=Specified project is not a Java project
-JUnitMainTab.error.testnotdefined=Test not specified
-JUnitMainTab.error.testnotexists=Test class does not exist
-JUnitMainTab.error.invalidTest=Specified class is not a valid test class
-JUnitMainTab.error.noContainer=No project, source folder or package is specified
+JUnitMainTab_label_oneTest=&Run a single test
+JUnitMainTab_label_project=&Project:
+JUnitMainTab_label_browse=&Browse...
+JUnitMainTab_label_test=T&est class:
+JUnitMainTab_label_search=&Search...
+JUnitMainTab_label_containerTest=Run &all tests in the selected project, package or source folder:
+JUnitMainTab_label_keeprunning=&Keep Test::Unit running after a test run when debugging
+JUnitMainTab_testdialog_title=Test Selection
+JUnitMainTab_testdialog_message=Choose a test case or test suite:
+JUnitMainTab_projectdialog_title=Project Selection
+JUnitMainTab_projectdialog_message=Choose a project to constrain the search for main types:
+JUnitMainTab_tab_label=Test
+JUnitMainTab_label_defaultpackage=(default package)
+JUnitMainTab_label_method=Test method:
+JUnitMainTab_folderdialog_title=Folder Selection
+JUnitMainTab_folderdialog_message=Choose a Project, Source Folder or Package:
+JUnitMainTab_error_projectnotdefined=Project not specified
+JUnitMainTab_error_projectnotexists=Project does not exist
+JUnitMainTab_error_notJavaProject=Specified project is not a Java project
+JUnitMainTab_error_testnotdefined=Test not specified
+JUnitMainTab_error_testnotexists=Test class does not exist
+JUnitMainTab_error_invalidTest=Specified class is not a valid test class
+JUnitMainTab_error_noContainer=No project, source folder or package is specified
-TestSearchEngine.message.searching=Searching suites
-LaunchTestAction.dialog.title=Test::Unit Launch
-LaunchTestAction.message.notests=No Test::Unit tests found.
-LaunchTestAction.dialog.title2=Test Selection
-LaunchTestAction.message.selectTestToRun=Select Test to debug
-LaunchTestAction.message.selectTestToDebug=Select Test to run
-LaunchTestAction.message.launchFailed=JUnit Launch Failed
-LaunchTestAction.message.selectConfiguration=Select a Test Configuration
-LaunchTestAction.message.selectDebugConfiguration=Select JUnit configuration to debug
-LaunchTestAction.message.selectRunConfiguration=Select JUnit configuration to run
+TestSearchEngine_message_searching=Searching suites
+LaunchTestAction_dialog_title=Test::Unit Launch
+LaunchTestAction_message_notests=No Test::Unit tests found.
+LaunchTestAction_dialog_title2=Test Selection
+LaunchTestAction_message_selectTestToRun=Select Test to debug
+LaunchTestAction_message_selectTestToDebug=Select Test to run
+LaunchTestAction_message_launchFailed=JUnit Launch Failed
+LaunchTestAction_message_selectConfiguration=Select a Test Configuration
+LaunchTestAction_message_selectDebugConfiguration=Select JUnit configuration to debug
+LaunchTestAction_message_selectRunConfiguration=Select JUnit configuration to run
-Resources.outOfSyncResources= Some resources are out of sync
-Resources.outOfSync= Resource ''{0}'' is out of sync with file system.
-Resources.modifiedResources= There are modified resources
-Resources.fileModified= File ''{0}'' has been modified since the beginning of the operation
+Resources_outOfSyncResources= Some resources are out of sync
+Resources_outOfSync= Resource ''{0}'' is out of sync with file system.
+Resources_modifiedResources= There are modified resources
+Resources_fileModified= File ''{0}'' has been modified since the beginning of the operation
-CompareResultsAction.label=Compare Result
-CompareResultsAction.description=Compare the actual and expected test result
-CompareResultsAction.tooltip=Compare Actual With Expected Test Result
+CompareResultsAction_label=Compare Result
+CompareResultsAction_description=Compare the actual and expected test result
+CompareResultsAction_tooltip=Compare Actual With Expected Test Result
-CompareResultDialog.title=Result Comparison
-CompareResultDialog.labelOK=OK
-CompareResultDialog.expectedLabel=Expected
-CompareResultDialog.actualLabel=Actual
+CompareResultDialog_title=Result Comparison
+CompareResultDialog_labelOK=OK
+CompareResultDialog_expectedLabel=Expected
+CompareResultDialog_actualLabel=Actual
-RerunAction.label.run=&Run
-RerunAction.label.debug=&Debug
+RerunAction_label_run=&Run
+RerunAction_label_debug=&Debug
-ScrollLockAction.action.label=Scroll Lock
-ScrollLockAction.action.description=Scroll lock
-ScrollLockAction.action.tooltip=Scroll Lock
+ScrollLockAction_action_label=Scroll Lock
+ScrollLockAction_action_description=Scroll lock
+ScrollLockAction_action_tooltip=Scroll Lock
-ExpandAllAction.text=Expand All
-ExpandAllAction.tooltip=Expand All Nodes
+ExpandAllAction_text=Expand All
+ExpandAllAction_tooltip=Expand All Nodes
-LaunchConfigurationTab.RubyEntryPoint.allTestCases=Run all TestCases
-LaunchConfigurationTab.RubyEntryPoint.classLabel=Test Class:
-LaunchConfigurationTab.RubyEntryPoint.classSelectorMessage=Choose the test class:
-LaunchConfigurationTab.RubyEntryPoint.allTestMethods=Run all tests
-LaunchConfigurationTab.RubyEntryPoint.methodLabel=Test Method:
-RubyClassSelector.Title=Class Selection
+LaunchConfigurationTab_RubyEntryPoint_allTestCases=Run all TestCases
+LaunchConfigurationTab_RubyEntryPoint_classLabel=Test Class:
+LaunchConfigurationTab_RubyEntryPoint_classSelectorMessage=Choose the test class:
+LaunchConfigurationTab_RubyEntryPoint_allTestMethods=Run all tests
+LaunchConfigurationTab_RubyEntryPoint_methodLabel=Test Method:
+RubyClassSelector_Title=Class Selection
#########################################
# Information Dialog
#########################################
-Dialog.launchWithoutSelectedInterpreter=Before launching a ruby application, please specifiy an interpreter using the ruby interpreter preferences page.
-Dialog.launchWithoutSelectedInterpreter.title=No interpreter found
\ No newline at end of file
+Dialog_launchWithoutSelectedInterpreter=Before launching a ruby application, please specifiy an interpreter using the ruby interpreter preferences page.
+Dialog_launchWithoutSelectedInterpreter_title=No interpreter found
\ No newline at end of file
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -234,7 +234,7 @@
ViewForm bottom = new ViewForm(fSashForm, SWT.NONE);
CLabel label = new CLabel(bottom, SWT.NONE);
- label.setText(TestUnitMessages.getString("TestRunnerViewPart.label.failure")); //$NON-NLS-1$
+ label.setText(TestUnitMessages.TestRunnerViewPart_label_failure);
label.setImage(fStackViewIcon);
bottom.setTopLeft(label);
@@ -394,7 +394,7 @@
try {
String name = className;
if (testName != null) name += "." + testName; //$NON-NLS-1$
- String configName = TestUnitMessages.getFormattedString("TestRunnerViewPart.configName", name); //$NON-NLS-1$
+ String configName = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_configName, name);
ILaunchConfigurationWorkingCopy tmp = launchConfiguration.copy(configName);
// fix for bug: 64838 junit view run single test does not
// use
@@ -407,12 +407,12 @@
tmp.launch(launchMode, null);
return;
} catch (CoreException e) {
- ErrorDialog.openError(getSite().getShell(), TestUnitMessages.getString("TestRunnerViewPart.error.cannotrerun"), e.getMessage(), e.getStatus() //$NON-NLS-1$
+ ErrorDialog.openError(getSite().getShell(), TestUnitMessages.TestRunnerViewPart_error_cannotrerun, e.getMessage(), e.getStatus() //$NON-NLS-1$
);
}
}
- MessageDialog.openInformation(getSite().getShell(), TestUnitMessages.getString("TestRunnerViewPart.cannotrerun.title"), //$NON-NLS-1$
- TestUnitMessages.getString("TestRunnerViewPart.cannotrerurn.message") //$NON-NLS-1$
+ MessageDialog.openInformation(getSite().getShell(), TestUnitMessages.TestRunnerViewPart_cannotrerun_title,
+ TestUnitMessages.TestRunnerViewPart_cannotrerurn_message
);
}
}
@@ -446,7 +446,7 @@
}
protected void aboutToLaunch() {
- String msg = TestUnitMessages.getString("TestRunnerViewPart.message.launching"); //$NON-NLS-1$
+ String msg = TestUnitMessages.TestRunnerViewPart_message_launching;
showInformation(msg);
setInfoMessage(msg);
//fViewImage= fOriginalViewImage;
@@ -669,13 +669,13 @@
*/
public void testReran(String testId, String className, String testName, int status, String trace) {
if (status == ITestRunListener.STATUS_ERROR) {
- String msg = TestUnitMessages.getFormattedString("TestRunnerViewPart.message.error", new String[] { testName, className}); //$NON-NLS-1$
+ String msg = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_message_error, new String[] { testName, className});
postError(msg);
} else if (status == ITestRunListener.STATUS_FAILURE) {
- String msg = TestUnitMessages.getFormattedString("TestRunnerViewPart.message.failure", new String[] { testName, className}); //$NON-NLS-1$
+ String msg = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_message_failure, new String[] { testName, className});
postError(msg);
} else {
- String msg = TestUnitMessages.getFormattedString("TestRunnerViewPart.message.success", new String[] { testName, className}); //$NON-NLS-1$
+ String msg = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_message_success, new String[] { testName, className});
setInfoMessage(msg);
}
TestRunInfo info = getTestInfo(testId);
@@ -781,7 +781,7 @@
}
String className = testInfo.getClassName();
String method = testInfo.getTestMethodName();
- String status = TestUnitMessages.getFormattedString("TestRunnerViewPart.message.started", new String[] { className, method}); //$NON-NLS-1$
+ String status = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_message_started, new String[] { className, method});
setInfoMessage(status);
}
@@ -802,7 +802,7 @@
* @see ITestRunListener#testRunStopped
*/
public void testRunStopped(final long elapsedTime) {
- String msg = TestUnitMessages.getString("TestRunnerViewPart.message.stopped"); //$NON-NLS-1$
+ String msg = TestUnitMessages.TestRunnerViewPart_message_stopped;
setInfoMessage(msg);
handleStopped();
}
@@ -826,7 +826,7 @@
public void testRunEnded(long elapsedTime) {
fExecutedTests--;
String[] keys = { elapsedTimeAsString(elapsedTime)};
- String msg = TestUnitMessages.getFormattedString("TestRunnerViewPart.message.finish", keys); //$NON-NLS-1$
+ String msg = TestUnitMessages.getFormattedString(TestUnitMessages.TestRunnerViewPart_message_finish, keys);
if (hasErrorsOrFailures())
postError(msg);
else
@@ -874,7 +874,7 @@
* @see ITestRunListener#testRunTerminated
*/
public void testRunTerminated() {
- String msg = TestUnitMessages.getString("TestRunnerViewPart.message.terminated"); //$NON-NLS-1$
+ String msg = TestUnitMessages.TestRunnerViewPart_message_terminated;
showMessage(msg);
handleStopped();
}
@@ -891,7 +891,7 @@
//fShowOnErrorOnly = JUnitPreferencePage.getShowOnErrorOnly();
fExecutedTests++;
stopUpdateJob();
- fUpdateJob = new UpdateUIJob(TestUnitMessages.getString("TestRunnerViewPart.jobName")); //$NON-NLS-1$
+ fUpdateJob = new UpdateUIJob(TestUnitMessages.TestRunnerViewPart_jobName);
fUpdateJob.schedule(REFRESH_INTERVAL);
}
@@ -928,7 +928,7 @@
public void rerunTestRun() {
if (lastLaunchIsKeptAlive()) {
// prompt for terminating the existing run
- if (MessageDialog.openQuestion(getSite().getShell(), TestUnitMessages.getString("TestRunnerViewPart.terminate.title"), TestUnitMessages.getString("TestRunnerViewPart.terminate.message"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (MessageDialog.openQuestion(getSite().getShell(), TestUnitMessages.TestRunnerViewPart_terminate_title, TestUnitMessages.TestRunnerViewPart_terminate_message)) {
if (fTestRunnerClient != null) fTestRunnerClient.stopTest();
}
}
@@ -972,8 +972,8 @@
private class RerunLastAction extends Action {
public RerunLastAction() {
- setText(TestUnitMessages.getString("TestRunnerViewPart.rerunaction.label")); //$NON-NLS-1$
- setToolTipText(TestUnitMessages.getString("TestRunnerViewPart.rerunaction.tooltip")); //$NON-NLS-1$
+ setText(TestUnitMessages.TestRunnerViewPart_rerunaction_label);
+ setToolTipText(TestUnitMessages.TestRunnerViewPart_rerunaction_tooltip);
setDisabledImageDescriptor(TestunitPlugin.getImageDescriptor("dlcl16/relaunch.gif")); //$NON-NLS-1$
setHoverImageDescriptor(TestunitPlugin.getImageDescriptor("elcl16/relaunch.gif")); //$NON-NLS-1$
setImageDescriptor(TestunitPlugin.getImageDescriptor("elcl16/relaunch.gif")); //$NON-NLS-1$
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/RubyClassSelector.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/RubyClassSelector.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/RubyClassSelector.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -98,7 +98,7 @@
}
});
- browseDialogTitle = TestUnitMessages.getString("RubyClassSelector.Title");
+ browseDialogTitle = TestUnitMessages.RubyClassSelector_Title;
}
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitLaunchShortcut.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitLaunchShortcut.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitLaunchShortcut.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -91,11 +91,11 @@
IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
dialog.setElements(configList.toArray());
- dialog.setTitle(TestUnitMessages.getString("LaunchTestAction.message.selectConfiguration")); //$NON-NLS-1$
+ dialog.setTitle(TestUnitMessages.LaunchTestAction_message_selectConfiguration);
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
- dialog.setMessage(TestUnitMessages.getString("LaunchTestAction.message.selectDebugConfiguration")); //$NON-NLS-1$
+ dialog.setMessage(TestUnitMessages.LaunchTestAction_message_selectDebugConfiguration);
} else {
- dialog.setMessage(TestUnitMessages.getString("LaunchTestAction.message.selectRunConfiguration")); //$NON-NLS-1$
+ dialog.setMessage(TestUnitMessages.LaunchTestAction_message_selectRunConfiguration);
}
dialog.setMultipleSelection(false);
int result = dialog.open();
@@ -167,7 +167,7 @@
}
protected void showNoInterpreterDialog() {
- MessageDialog.openInformation(TestunitPlugin.getActiveWorkbenchShell(), TestUnitMessages.getString("Dialog.launchWithoutSelectedInterpreter.title"), TestUnitMessages.getString("Dialog.launchWithoutSelectedInterpreter"));
+ MessageDialog.openInformation(TestunitPlugin.getActiveWorkbenchShell(), TestUnitMessages.Dialog_launchWithoutSelectedInterpreter_title, TestUnitMessages.Dialog_launchWithoutSelectedInterpreter);
}
protected static String getDefaultWorkingDirectory(IProject project) {
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitMainTab.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitMainTab.java 2007-01-22 21:00:44 UTC (rev 1849)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/testunit/launcher/TestUnitMainTab.java 2007-01-22 21:18:52 UTC (rev 1850)
@@ -83,9 +83,9 @@
public void createControl(Composite parent) {
Composite composite = createPageRoot(parent);
- new Label(composite, SWT.NONE).setText(RdtDebugUiMessages.getString("LaunchConfigurationTab.RubyEntryPoint.projectLabel"));
+ new Label(composite, SWT.NONE).setText(RdtDebugUiMessages.LaunchConfigurationTab_RubyEntryPoint_projectLabel);
projectSelector = new RubyProjectSelector(composite);
- projectSelector.setBrowseDialogMessage(RdtDebugUiMessages.getString("LaunchConfigurationTab.RubyEntryPoint.projectSelectorMessage"));
+ projectSelector.setBrowseDialogMessage(RdtDebugUiMessages.LaunchConfigurationTab_RubyEntryPoint_projectSelectorMessage);
projectSelector.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
projectSelector.addModifyListener(new ModifyListener() {
@@ -100,9 +100,9 @@
}
});
- new Label(composite, SWT.NONE).setText(RdtDebugUiMessages.getString("LaunchConfigurationTab.RubyEntryPoint.fileLabel"));
+ new Label(composite, SWT.NONE).setText(RdtDebugUiMessages.LaunchConfigurationTab_RubyEntryPoint_fileLabel);
fileSelector = new RubyFileSelector(composite, projectSelector);
- fileSelector.setBrowseDialogMessage(RdtDebugUiMessages.getString("LaunchConfigurationTab.RubyEntryPoint.fileSelectorMessage"));
+ fileSelector.setBrowseDialogMessage(RdtDebugUiMessages.LaunchConfigurationTab_RubyEntryPoint_fileSelectorMessage);
fileSelector.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fileSelector.addModifyListener(new ModifyListener() {
@@ -117,7 +117,7 @@
});
allClassesCheckBox = new Button(composite, SWT.CHECK);
- allClassesCheckBox.setText(TestUnitMessages.getString("LaunchConfigurationTab.RubyEntryPoint.allTestCases"));
+ allClassesCheckBox.setText(TestUnitMessages.LaunchConfigurationTab_RubyEntryPoint_allTestCases);
allClassesCheckBox.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
@@ -129,10 +129,10 @@
});
classLabel = new Label(composite, SWT.NONE);
- classLabel.setText(TestUnitMessages.getString("LaunchConfigurationTab.RubyEntryPoint.classLabel"));
+ classLabel.setText(TestUnitMessages.LaunchConfigurationTab_RubyEntryPoint_classLabel);
classSelector = new RubyClassSelector(composite, fileSelector, projectSelector);
- classSelector.setBrowseDialogMessage(TestUnitMessages.getString("LaunchConfigurationTab.RubyEntryPoint.classSelectorMessage"));
+ classSelector.setBrowseDialogMessage(TestUnitMessages.LaunchConfigurationTab_RubyEntryPoint_classSelectorMessage);
classSelector.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
classSelector.addModifyListener(new ModifyListener() {
@@ -142,7 +142,7 @@
});
allMethodsCheckBox = new Button(composite, SWT.CHECK);
- allMethodsCheckBox.setText(TestUnitMessages.getString("LaunchConfigurationTab.RubyEntryPoint.allTestMethods"));
+ allMethodsCheckBox.setText(TestUnitMessages.LaunchConfigurationTab_RubyEntryPoint_allTestMethods);
allMethodsCheckBox.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
@@ -154,7 +154,7 @@
});
testLabel = new Label(composite, SWT.NONE);
- testLabel.setText(TestUnitMessages.getString("LaunchConfigurationTab.RubyEntryPoint.methodLabel"));
+ testLabel.setText(TestUnitMessages.LaunchConfigurationTab_RubyEntryPoint_methodLabel);
testMethodEditBox = new Text(composite, SWT.BORDER | SWT.BORDER);
testMethodEditBox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
@@ -274,7 +274,7 @@
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getName()
*/
public String getName() {
- return TestUnitMessages.getString("JUnitMainTab.tab.label"); //$NON-NLS-1$
+ return TestUnitMessages.JUnitMainTab_tab_label;
}
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|