mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug #219320 : EnvDialog createDialogArea IllegalArgumentException when value is <undefined>
This commit is contained in:
parent
84c9619cf4
commit
e9e1c3b1af
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2008 Intel Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -124,7 +124,8 @@ public class EnvDialog extends Dialog {
|
|||
|
||||
text1.setText(var.getName());
|
||||
text1.setEnabled(false); // don't change name
|
||||
text2.setText(var.getValue());
|
||||
String s = var.getValue();
|
||||
text2.setText(s == null ? AbstractCPropertyTab.EMPTY_STR : s);
|
||||
}
|
||||
|
||||
gd.horizontalSpan = 3;
|
||||
|
|
|
@ -354,6 +354,8 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
|||
vars.createVariable(dlg.t1.trim(), dlg.t2.trim(),
|
||||
IEnvironmentVariable.ENVVAR_REPLACE, var.getDelimiter());
|
||||
updateData();
|
||||
table.setSelection(n);
|
||||
updateButtons();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -376,6 +378,8 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
|||
var.getDelimiter(), cfgd);
|
||||
}
|
||||
updateData();
|
||||
table.setSelection(n);
|
||||
updateButtons();
|
||||
}
|
||||
|
||||
private void handleEnvDelButtonSelected(int n) {
|
||||
|
|
Loading…
Add table
Reference in a new issue