ix.iface.ui
Class AbstractSetEditor

Support for editing sets of objects (e.g. constraints)
Looks after adding/removing/editing the objects
and keeping the set consistent. Handles overwrites, finding objects
in the set, working out whether the set has changed.

handleNameClash

The two given named objects clash if changeO changes its name to
newName. Offer choices:
- change oldO name: legal-set changeO temporary name,
get oldO name from user and set it on oldO, set newName in changeO
- change newName: get name from user and setName that on changeO
- or forget the new name and keep changeO's old name.

Returns:

true if changes are made, false for last option.

hasChangedFromOriginal

public boolean hasChangedFromOriginal(java.lang.Object o)

updateConstruct

public void updateConstruct(java.lang.Object object)

removeConstruct

public void removeConstruct(java.lang.Object object)

hasChangedConstructs

public boolean hasChangedConstructs()

Finds out whether any constructs in the set have changed.
The set has not changed if there are no added/edited/removed notes

collectConstructChanges

public java.util.List collectConstructChanges()

Collects descriptions of any changes in constructs in the set.

newOwnObject

public java.lang.Object newOwnObject(java.lang.Object object)

getOwnObject

public java.lang.Object getOwnObject(java.lang.Object object)

findOwnObject

public java.lang.Object findOwnObject(java.lang.Object object)

Finds an ownObject from the given Object by looking it up in the
"originals" list.