Toolbar

From AIBenchWiki

Jump to: navigation, search


The AIBench toolbar is implemented as a shortcut system.

To get the Toolbar working you have to:

  • Add a new attribute in the operation-description tag in the plugin.xml, "shortcut=<number_for_position>". If it is present, the Workbench plugin will use it to place it in a toolbar. The specified number will be used for positioning.
<extension uid="aibench.core" name="aibench.core.operation-definition" class="sampleplugin.Sum">
 <operation-description name="Sum Operation" path="10@Sample/1@SubmenuExample" uid= "sampleplugin.sumoperationid" shortcut="3"/>
</extension>
  • You can also add an extra icon to show in the toolbar, for instance a larger icon than the default operation icon
<extension uid="aibench.workbench" name="aibench.workbench.view" >
     <icon-operation operation="sampleplugin.sumoperationid" icon="icons/oneicon.png"/>
     <big-icon-operation operation="sampleplugin.sumoperationid" icon="icons/onebigicon.png"/>
     <icon-datatype datatype="sampleplugin.OneClass" icon="icons/othericon.png"/> 
</extension>
  • To configure the toolbar in the Workench.conf you have four new options:
toolbar.visible=true|false (default false)
toolbar.separators=1,5,6 (a comma-separated list of positions where a separator should be placed after)
toolbar.showOperationNames=true|false (default true)
toolbar.position=NORTH|SOUTH|EAST|WEST (default NORTH)
Personal tools
Documentation