Port Attacher codde to the extension framework

AttachableObjects are desired in multiple occasions, and the current AttachableObject is not flexible enough to handle all cases. Hence the code is portet to an extension, which gives the needed flexibility.
This commit is contained in:
Stefan Tröger
2016-11-30 17:25:26 +01:00
parent c4911aeca1
commit 67d76b309c
20 changed files with 136 additions and 118 deletions

View File

@@ -82,10 +82,9 @@ DocumentObjectExecReturn *DocumentObject::execute(void)
{
//call all extensions
auto vector = getExtensionsDerivedFromType<App::DocumentObjectExtension>();
for(auto ext : vector) {
if(ext->extensionMustExecute())
ext->extensionExecute();
}
for(auto ext : vector)
ext->extensionExecute();
return StdReturn;
}