| 209 | } |
| 210 | |
| 211 | void CtrlrLuaMethodManager::restoreMethod (const ValueTree &savedState, const Uuid parentUuid) |
| 212 | { |
| 213 | if ((int)savedState.getProperty(Ids::luaMethodSource) == (int)CtrlrLuaMethod::codeInFile) |
| 214 | { |
| 215 | addMethodFromFile (getGroupByUuid(parentUuid), |
| 216 | owner.getOwner().getLuaMethodSourceFile(&savedState), |
| 217 | Uuid(savedState.getProperty(Ids::uuid).toString())); |
| 218 | } |
| 219 | else |
| 220 | { |
| 221 | addMethod (getGroupByUuid(parentUuid), |
| 222 | savedState.getProperty(Ids::luaMethodName), |
| 223 | savedState.getProperty(Ids::luaMethodCode), |
| 224 | savedState.getProperty(Ids::luaMethodLinkedProperty), |
| 225 | savedState.getProperty(Ids::uuid).toString()); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | void CtrlrLuaMethodManager::restoreMethodsRecursivly(const ValueTree &savedState, const Uuid parentUuid) |
| 230 | { |
nothing calls this directly
no test coverage detected