flat link without root under plugins of the option tree for single option page plugin

Post here questions and problems related to oXygen frameworks/document types.
nh89ur168
Posts: 3
Joined: Mon Sep 29, 2025 9:54 pm

flat link without root under plugins of the option tree for single option page plugin

Post by nh89ur168 »

Dear Sir,
I'd developed a functional working custom plugin with extensions of the following:
  • WorkspaceAccessJS
  • OptionPage
However the single option page always looks like the following in the preferences dialog as the oxygen maven sample:
  • plugins
    • myPluginName(with blank left page)
      • myPluginOptionPage(the single option page)
Is this possible to turn the single page of the Options looks like the following:
  • plugins
    • myPluginOptionPage(the single option page)
How to implement if yes, thanks in advance.
Radu
Posts: 9544
Joined: Fri Jul 09, 2004 5:18 pm

Re: flat link without root under plugins of the option tree for single option page plugin

Post by Radu »

Hi,
In your plugin.xml your <plugin> has a @name attribute like:

Code: Select all

<plugin id="..." name="ABC"
If in your options page implementation you return the same name as the title:

Code: Select all

  /**
   * @see OptionPagePluginExtension#getTitle()
   */
  @Override
  public String getTitle() {
    return "ABC";
  }
Then the preferences page should appear on the first level in the Preferences->Plugins parent page.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
nh89ur168
Posts: 3
Joined: Mon Sep 29, 2025 9:54 pm

Re: flat link without root under plugins of the option tree for single option page plugin

Post by nh89ur168 »

Hi Radu,
It works like a charm with your suggestion. Thank you :D
Post Reply