Skip to content

Proxy categories improvements

Add a test case for "ShowInMenu" xml proxy hints. So add a new proxy with that hint in the test plugin.

New version of ConfigureCategories.xml plugin
<ServerManagerConfiguration>
  <ProxyGroup name="filters">
    <!-- for testing purpose, we need to be the first in the alphabetical list -->
    <SourceProxy name="0000MyGlyph" 
      label="0000 My Glyph"
      class="vtkPVGlyphFilter"
      base_proxygroup="filters"
      base_proxyname="Glyph" >
  </SourceProxy>
  <SourceProxy name="MyGlyph" 
      label="My Glyph"
      class="vtkPVGlyphFilter"
      base_proxygroup="filters"
      base_proxyname="Glyph" >
    <!-- use hints to add it into a category -->
    <Hints>
      <ShowInMenu category="PluginHint"/>
    </Hints>
  </SourceProxy>
 </ProxyGroup>
 <!-- add a filter into its own hierarchical category -->
 <ParaViewFilters>
   <Category name="Plugins">
     <Category name="Testing">
       <Proxy group="filters" name="0000MyGlyph" />
     </Category>
   </Category>
 </ParaViewFilters>
</ServerManagerConfiguration>

The previous logic to override label with name when needed leads to some case where correct label was never set ... So proxy label fallback to name only in label getter, and Label is not overridden anymore. This also simplify the code.

followup: !6395 (merged)

Merge request reports