-
Notifications
You must be signed in to change notification settings - Fork 116
Description
The toolbar allows additions via SPI https://github.com/ControlSystemStudio/phoebus/blob/master/core/ui/src/main/java/org/phoebus/ui/spi/ToolbarEntry.java
The ToolbarEntryService that reads the SPI entries, https://github.com/ControlSystemStudio/phoebus/blob/master/core/ui/src/main/java/org/phoebus/ui/application/ToolbarEntryService.java, currently lists them all, not sure about their order.
Proposal is to make this configurable via preference settings.
Some new setting toolbar_entries=entry,entry,entry with a default value of * or maybe empty would have the ToolbarEntryService list all available entries as it currently does.
But by setting toolbar_entries=File Browser, ... the entries shown as well as their order can be configured.
Note that using the existing SPI information, the entries would be selected by the name they provide via ToolbarEntry#getName(). For the file browser, that's the localized name, so the name for the same app might differ between sites. Likely no problem because the setting is site-specific anyway, and the default of * or empty would work for all.