company logo

TypeContext :: canRename - Check whether the selected instance can be renamed

The function is called from the system or when calling Property::canRename() in order to check whether renaming instance is possible or not. By default, the function returns true. In order to perform application specific checks, the function has to be overloaded in a corresponding type context class.

Notes:

The function must not be called for checking the action but performs the check. For checking the action one may call Property::canRename().

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool TypeContext  :: canRename (  )