| 72 | //------------------------------------------------------------------------------ |
| 73 | |
| 74 | bool EditManager::onAdd() |
| 75 | { |
| 76 | if(!Parent::onAdd()) |
| 77 | return(false); |
| 78 | |
| 79 | // hook the namespace |
| 80 | const char * name = getName(); |
| 81 | if(name && name[0] && getClassRep()) |
| 82 | { |
| 83 | Namespace * parent = getClassRep()->getNameSpace(); |
| 84 | Con::linkNamespaces(parent->mName, name); |
| 85 | mNameSpace = Con::lookupNamespace(name); |
| 86 | } |
| 87 | |
| 88 | return(true); |
| 89 | } |
| 90 | |
| 91 | //------------------------------------------------------------------------------ |
| 92 |
nothing calls this directly
no test coverage detected