1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

The NLS strings were changed in the LuanchUIMessages.properties file, but this file was not updated accordingly.

This commit is contained in:
Marc Khouzam 2010-04-26 19:58:53 +00:00
parent 5fad5a3b0c
commit ff8e3b71be

View file

@ -80,7 +80,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
setMessage(null); setMessage(null);
} }
else { else {
setErrorMessage(LaunchUIMessages.getString("GDBDebuggerPage.0")); //$NON-NLS-1$ setErrorMessage(LaunchUIMessages.getString("GDBDebuggerPage.gdb_executable_not_specified")); //$NON-NLS-1$
setMessage(null); setMessage(null);
} }
return valid; return valid;
@ -124,7 +124,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
} }
public String getName() { public String getName() {
return LaunchUIMessages.getString("GDBDebuggerPage.1"); //$NON-NLS-1$ return LaunchUIMessages.getString("GDBDebuggerPage.tab_name"); //$NON-NLS-1$
} }
/** /**
@ -166,7 +166,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
public void createMainTab(TabFolder tabFolder) { public void createMainTab(TabFolder tabFolder) {
TabItem tabItem = new TabItem(tabFolder, SWT.NONE); TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
tabItem.setText(LaunchUIMessages.getString("GDBDebuggerPage.2")); //$NON-NLS-1$ tabItem.setText(LaunchUIMessages.getString("GDBDebuggerPage.main_tab_name")); //$NON-NLS-1$
Composite comp = ControlFactory.createCompositeEx(tabFolder, 1, GridData.FILL_BOTH); Composite comp = ControlFactory.createCompositeEx(tabFolder, 1, GridData.FILL_BOTH);
((GridLayout)comp.getLayout()).makeColumnsEqualWidth = false; ((GridLayout)comp.getLayout()).makeColumnsEqualWidth = false;
comp.setFont(tabFolder.getFont()); comp.setFont(tabFolder.getFont());
@ -174,7 +174,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
Composite subComp = ControlFactory.createCompositeEx(comp, 3, GridData.FILL_HORIZONTAL); Composite subComp = ControlFactory.createCompositeEx(comp, 3, GridData.FILL_HORIZONTAL);
((GridLayout)subComp.getLayout()).makeColumnsEqualWidth = false; ((GridLayout)subComp.getLayout()).makeColumnsEqualWidth = false;
subComp.setFont(tabFolder.getFont()); subComp.setFont(tabFolder.getFont());
Label label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.3")); //$NON-NLS-1$ Label label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_debugger")); //$NON-NLS-1$
GridData gd = new GridData(); GridData gd = new GridData();
// gd.horizontalSpan = 2; // gd.horizontalSpan = 2;
label.setLayoutData(gd); label.setLayoutData(gd);
@ -186,7 +186,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
updateLaunchConfigurationDialog(); updateLaunchConfigurationDialog();
} }
}); });
Button button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.4"), null); //$NON-NLS-1$ Button button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_browse"), null); //$NON-NLS-1$
button.addSelectionListener(new SelectionAdapter() { button.addSelectionListener(new SelectionAdapter() {
@Override @Override
@ -197,7 +197,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
private void handleGDBButtonSelected() { private void handleGDBButtonSelected() {
FileDialog dialog = new FileDialog(getShell(), SWT.NONE); FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
dialog.setText(LaunchUIMessages.getString("GDBDebuggerPage.5")); //$NON-NLS-1$ dialog.setText(LaunchUIMessages.getString("GDBDebuggerPage.gdb_browse_dlg_title")); //$NON-NLS-1$
String gdbCommand = fGDBCommandText.getText().trim(); String gdbCommand = fGDBCommandText.getText().trim();
int lastSeparatorIndex = gdbCommand.lastIndexOf(File.separator); int lastSeparatorIndex = gdbCommand.lastIndexOf(File.separator);
if (lastSeparatorIndex != -1) { if (lastSeparatorIndex != -1) {
@ -210,7 +210,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
fGDBCommandText.setText(res); fGDBCommandText.setText(res);
} }
}); });
label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.6")); //$NON-NLS-1$ label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_command_file")); //$NON-NLS-1$
gd = new GridData(); gd = new GridData();
// gd.horizontalSpan = 2; // gd.horizontalSpan = 2;
label.setLayoutData(gd); label.setLayoutData(gd);
@ -224,7 +224,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
updateLaunchConfigurationDialog(); updateLaunchConfigurationDialog();
} }
}); });
button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.7"), null); //$NON-NLS-1$ button = createPushButton(subComp, LaunchUIMessages.getString("GDBDebuggerPage.gdb_cmdfile_browse"), null); //$NON-NLS-1$
button.addSelectionListener(new SelectionAdapter() { button.addSelectionListener(new SelectionAdapter() {
@Override @Override
@ -235,7 +235,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
private void handleGDBInitButtonSelected() { private void handleGDBInitButtonSelected() {
FileDialog dialog = new FileDialog(getShell(), SWT.NONE); FileDialog dialog = new FileDialog(getShell(), SWT.NONE);
dialog.setText(LaunchUIMessages.getString("GDBDebuggerPage.8")); //$NON-NLS-1$ dialog.setText(LaunchUIMessages.getString("GDBDebuggerPage.gdb_cmdfile_dlg_title")); //$NON-NLS-1$
String gdbCommand = fGDBInitText.getText().trim(); String gdbCommand = fGDBInitText.getText().trim();
int lastSeparatorIndex = gdbCommand.lastIndexOf(File.separator); int lastSeparatorIndex = gdbCommand.lastIndexOf(File.separator);
if (lastSeparatorIndex != -1) { if (lastSeparatorIndex != -1) {
@ -249,7 +249,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
} }
}); });
label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.9"), //$NON-NLS-1$ label = ControlFactory.createLabel(subComp, LaunchUIMessages.getString("GDBDebuggerPage.cmdfile_warning"), //$NON-NLS-1$
200, SWT.DEFAULT, SWT.WRAP); 200, SWT.DEFAULT, SWT.WRAP);
gd = new GridData(GridData.FILL_HORIZONTAL); gd = new GridData(GridData.FILL_HORIZONTAL);
@ -260,7 +260,7 @@ public class GdbCoreDebuggerPage extends AbstractCDebuggerPage implements Observ
public void createSolibTab(TabFolder tabFolder) { public void createSolibTab(TabFolder tabFolder) {
TabItem tabItem = new TabItem(tabFolder, SWT.NONE); TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
tabItem.setText(LaunchUIMessages.getString("GDBDebuggerPage.10")); //$NON-NLS-1$ tabItem.setText(LaunchUIMessages.getString("GDBDebuggerPage.shared_libraries")); //$NON-NLS-1$
Composite comp = ControlFactory.createCompositeEx(fTabFolder, 1, GridData.FILL_BOTH); Composite comp = ControlFactory.createCompositeEx(fTabFolder, 1, GridData.FILL_BOTH);
comp.setFont(tabFolder.getFont()); comp.setFont(tabFolder.getFont());
tabItem.setControl(comp); tabItem.setControl(comp);