Installing your own tool

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
(Placing the tool class file)
Line 2: Line 2:
  
 
* Place your tool class file into Wandora's tool directory.
 
* Place your tool class file into Wandora's tool directory.
* Restart Wandora.
+
* Open Wandora.
 
* Open Tool manager.
 
* Open Tool manager.
* Create new tool.
+
* Select '''generic''' tool set.
* Locate your tool class and give a name for your tool.
+
* Add tool to the set.
* Accept new tool and close tool manager.
+
* Close Tool manager.
  
 
Now your tool is available at '''Tools''' menu and ready to be executed.
 
Now your tool is available at '''Tools''' menu and ready to be executed.
Line 13: Line 13:
 
==Placing the tool class file==
 
==Placing the tool class file==
  
Tool manager scans through given folders for class files. If scanned class file implements tool interface the class is accepted as a Wandora tool. Folder list is given in [[Wandora options]] file with path elements. By default the tool manager seeks tool classes in package '''org/wandora/application/tools''' and it's subpackages.
+
Tool manager scans through given folders for class files. If scanned class file implements [http://www.wandora.org/ tool interface] the class is accepted as a Wandora tool. By default the tool manager seeks tool classes in package '''org/wandora/application/tools''' and it's subpackages.
  
You have to place your tool class into one of these packages or you have to add new path element for your tool. If your tool class package is for example '''org.myproject.tools''' add element to options.
+
If you add new path to options make sure the path is also Java's class path. To change class path's of Wandora you need to edit '''bin/SetClasspath.bat''' and '''bin/SetClasspath.sh'''.
 
+
    <path15>org/myprojects/tools</path15>
+
 
+
Here we assume that options already contains 14 path settings. If you add new path to options make sure the path is also Java's class path. To change class path's of Wandora you need to edit '''bin/SetClasspath.bat''' and '''bin/SetClasspath.sh'''.
+
  
 
Unfortunately Wandora does not scan tool classes in '''jar''' or '''zip''' packages.
 
Unfortunately Wandora does not scan tool classes in '''jar''' or '''zip''' packages.

Revision as of 11:40, 21 March 2009

To install your own tool

  • Place your tool class file into Wandora's tool directory.
  • Open Wandora.
  • Open Tool manager.
  • Select generic tool set.
  • Add tool to the set.
  • Close Tool manager.

Now your tool is available at Tools menu and ready to be executed.


Placing the tool class file

Tool manager scans through given folders for class files. If scanned class file implements tool interface the class is accepted as a Wandora tool. By default the tool manager seeks tool classes in package org/wandora/application/tools and it's subpackages.

If you add new path to options make sure the path is also Java's class path. To change class path's of Wandora you need to edit bin/SetClasspath.bat and bin/SetClasspath.sh.

Unfortunately Wandora does not scan tool classes in jar or zip packages.

Personal tools