Example #1
0
 public override bool combine(Tool other)
 {
     if (other is ChangeDocumentationTool)
     {
         ChangeDocumentationTool cnt = (ChangeDocumentationTool)other;
         if (cnt.documented == documented && cnt.oldDocumentation == documentation)
         {
             documentation = cnt.documentation;
             timeStamp     = cnt.timeStamp;
             return(true);
         }
     }
     return(false);
 }
        /**
         * Sets the new documentation of the scene.
         *
         * @param documentation
         *            Documentation of the scene
         */
        public void setDocumentation(string documentation)
        {
            ChangeDocumentationTool tool = new ChangeDocumentationTool(scene, documentation);

            controller.addTool(tool);
        }