public class SCLTestsDialog extends FilteredItemsSelectionDialog {
- private static final String SCL_TEST_DIALOG_SETTINGS = "SCLTestDialogSettings";
+ private static final String SCL_TEST_DIALOG_SETTINGS = "SCLTestDialogSettings"; //$NON-NLS-1$
private List<TestRunnable> tests;
public SCLTestsDialog(Shell shell, List<TestRunnable> tests, boolean multi) {
super(shell, multi);
this.tests = tests;
- setTitle("Run SCL Tests");
+ setTitle(Messages.SCLTestsDialog_RunSCLTests);
setListLabelProvider(new LabelProvider() {
@Override
public String getText(Object element) {
if (element != null)
return ((TestRunnable) element).getName();
- return "No name!";
+ return Messages.SCLTestsDialog_NoName;
}
});
setSelectionHistory(new ResourceSelectionHistory());
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Button okButton = getButton(IDialogConstants.OK_ID);
- okButton.setText("Run test");
+ okButton.setText(Messages.SCLTestsDialog_RunTest);
setButtonLayoutData(okButton);
}
if(patternText != null && patternText.length() > 0)
patternMatcher.setPattern(patternText);
else
- patternMatcher.setPattern("**");
+ patternMatcher.setPattern("**"); //$NON-NLS-1$
}
@Override
public boolean matchItem(Object item) {
if(getPattern().indexOf('/') > 0)
return matches(testName);
else {
- for(String part : (testName.split("/")))
+ for(String part : (testName.split("/"))) //$NON-NLS-1$
if(matches(part))
return true;
return false;
protected void fillContentProvider(AbstractContentProvider contentProvider,
ItemsFilter itemsFilter, IProgressMonitor progressMonitor)
throws CoreException {
- progressMonitor.beginTask("Searching tests..", tests.size());
+ progressMonitor.beginTask(Messages.SCLTestsDialog_MonitorSearchingTests, tests.size());
for (TestRunnable test : tests) {
contentProvider.add(test, itemsFilter);
progressMonitor.worked(1);