Fire a property change event when we remove a configuration value.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -576,7 +576,10 @@ public class Config
|
|||||||
*/
|
*/
|
||||||
public void remove (String name)
|
public void remove (String name)
|
||||||
{
|
{
|
||||||
|
// we treat the old value as a String, I hope that's ok!
|
||||||
|
String oldValue = getValue(name, (String) null);
|
||||||
_prefs.remove(name);
|
_prefs.remove(name);
|
||||||
|
_propsup.firePropertyChange(name, oldValue, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user