Page 1 of 1

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

Posted: Mon Sep 29, 2025 10:23 pm
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.

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

Posted: Tue Sep 30, 2025 7:04 am
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

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

Posted: Tue Sep 30, 2025 7:19 am
by nh89ur168
Hi Radu,
It works like a charm with your suggestion. Thank you :D