[Minor] Add Activity.remove(String) to remove an element
This commit is contained in:
parent
e5f454d57d
commit
c62bbe987e
|
@ -179,7 +179,10 @@ public class Activity extends GroupedParameterizedElement
|
||||||
* @return the removed element, or null if it does not exist
|
* @return the removed element, or null if it does not exist
|
||||||
*/
|
*/
|
||||||
public IActivityElement remove(String id) {
|
public IActivityElement remove(String id) {
|
||||||
return this.elements.remove(id);
|
IActivityElement element = this.elements.remove(id);
|
||||||
|
if (element != null)
|
||||||
|
element.setParent(null);
|
||||||
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue