]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkExecuter.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkExecuter.cxx
index 891b6aa6b016ff41b83880d135726d3bc1619346..bd715119fffa4b453dc59b9308bd339e19b36632 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkExecuter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/01/28 15:08:53 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/01/30 09:28:15 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -341,7 +341,6 @@ namespace bbtk
       }
   }
 
-  
   /**
    *  
    */ 
@@ -393,7 +392,10 @@ namespace bbtk
     Current()->AddToAuthor(authorName,Current()==mRoot);
   }
 
-
+  void Executer::Keyword(const std::string &keyword)
+  {
+    Current()->AddToKeyword(keyword,Current()==mRoot);
+  }
 
   void Executer::Description(const std::string &d)
   {
@@ -450,11 +452,21 @@ namespace bbtk
        relative_link = false;
       }
 
+    
+    Package* p;
+    try 
+      {
+       p = GetGlobalFactory()->GetPackage(nameblackbox);
+      }
+    catch (Exception e)
+      {
+       p = mPackage;
+      }
     // Generating documentation-help of workspace
-    mPackage->SetDocURL(filename_rootHtml);
-    mPackage->SetDocRelativeURL(simplefilename_rootHtml);
+    p->SetDocURL(filename_rootHtml);
+    p->SetDocRelativeURL(simplefilename_rootHtml);
 
-    mPackage->CreateHtmlPage(filename_rootHtml,"bbi","user package",custom_header,custom_title,detail,level,relative_link);
+    p->CreateHtmlPage(filename_rootHtml,"bbi","user package",custom_header,custom_title,detail,level,relative_link);
     
     std::string page = filename_rootHtml;
     /*