Skip to content

Configurable toolbar #2888

@kasemir

Description

@kasemir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions