1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 17:45:24 +02:00

Fix some externalized strings warnings

This commit is contained in:
Martin Oberhuber 2006-08-08 08:58:33 +00:00
parent 328e07f782
commit a8925af740

View file

@ -94,12 +94,12 @@ public abstract class RemoteCommandShell implements IAdaptable, IRemoteCommandSh
if (currentNames.size() > 0) if (currentNames.size() > 0)
{ {
int number = 2; int number = 2;
String newName = name + " " + number; String newName = name + " " + number; //$NON-NLS-1$
if (currentNames.contains(name)) { if (currentNames.contains(name)) {
while (currentNames.contains(newName)) while (currentNames.contains(newName))
{ {
number++; number++;
newName = name + " " + number; newName = name + " " + number; //$NON-NLS-1$
} }
name = newName; name = newName;
} }
@ -279,8 +279,8 @@ public abstract class RemoteCommandShell implements IAdaptable, IRemoteCommandSh
{ {
String type = getCommandSubSystem().getHost().getSystemType(); String type = getCommandSubSystem().getHost().getSystemType();
return (type.equals("Windows") || return (type.equals("Windows") || //$NON-NLS-1$
type.equals("Local") && System.getProperty("os.name").toLowerCase().startsWith("win")); type.equals("Local") && System.getProperty("os.name").toLowerCase().startsWith("win")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
} }