modelObject.addPropertyChangeListener(Property.REMOVED_FROM_WORLD,
new WorldObject.Listener() {
public void propertyChanged(Property event) {
scriptConsole.removeVariable(modelName);
modelObject.removePropertyChangeListener(Property.REMOVED_FROM_WORLD,
this);
}
});
} catch (Exception e) {