Disable Views for Datatypes

From AIBenchWiki

Jump to: navigation, search

Problem

Views associated to datatypes (classes) are used with the specified datatype classes and with all their subclasses. Sometimes, subclasses should use specific views, but AIBench allways shows all suitable views.

Solution

Add the attribute except to the view tag, where the programmer could specify a list (comma separated) of classes that should not be rendered with the specified view.

<extension uid="aibench.workbench" name="aibench.workbench.view" >
  <view name="Sample Datatype View" datatype="sampleplugin.OneClass" class="sampleplugin.OneViewComponent" help="view.sampleplugin.oneclass" except="class1,class2"/>		
 </extension>
Personal tools
Documentation