mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[244051] Check dups in env vars even if invalidNameChars==null
This commit is contained in:
parent
cde5c0f2bc
commit
2b0e88e140
1 changed files with 84 additions and 86 deletions
|
@ -580,17 +580,15 @@ public class EnvironmentVariablesForm extends SystemBaseForm implements Selectio
|
||||||
}
|
}
|
||||||
|
|
||||||
// first check for invalid characters
|
// first check for invalid characters
|
||||||
if (invalidNameChars != null)
|
for (int i = 0; i < invalidNameChars.length() && msg == null; i++)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < invalidNameChars.length() && msg == null; i++)
|
if (name.indexOf(invalidNameChars.charAt(i)) != -1)
|
||||||
{
|
{
|
||||||
if (name.indexOf(invalidNameChars.charAt(i)) != -1)
|
msg = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_ENVVAR_INVALIDCHAR);
|
||||||
{
|
|
||||||
msg = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_COMM_ENVVAR_INVALIDCHAR);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (msg == null) {
|
||||||
// next check for duplicate env var names
|
// next check for duplicate env var names
|
||||||
int itemCount = envVarTable.getItemCount();
|
int itemCount = envVarTable.getItemCount();
|
||||||
for (int i = 0; i < itemCount; i++) {
|
for (int i = 0; i < itemCount; i++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue