You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Christian Grobmeier <gr...@apache.org> on 2023/12/02 16:42:54 UTC

[chainsaw] Question: oading/writing settings of ChainsawTabbedPane

Hi,

I re-added the load/write feature in ChainsawTabbedPane using JSON and Genson:
https://github.com/apache/logging-chainsaw/blob/master/src/main/java/org/apache/log4j/chainsaw/components/tabbedpane/ChainsawTabbedPane.java#L126-L191

If it works, I will refactor it further so we can reuse the writing and reading code for other components.

I could not test it: writing and reading are not used, and I want to know when this should happen.

Is it supposed to read this when we start the application and write it when the tab was changed?

Kind regards,
Christian


Re: [chainsaw] Question: oading/writing settings of ChainsawTabbedPane

Posted by Scott Deboy <sc...@gmail.com>.
That's great!

Global app settings used to be loaded on startup and saved on exit.

LogPanel-specific settings were persisted on exit and loaded on
startup on a per-tab-name basis, mostly using LogPanelpreferenceModel.

There are a few preferences I'd like to restore - the tab-expression
event routing mechanism and the ability to hide and show columns.

Scott

On 12/2/23, Christian Grobmeier <gr...@apache.org> wrote:
> Hi,
>
> I re-added the load/write feature in ChainsawTabbedPane using JSON and
> Genson:
> https://github.com/apache/logging-chainsaw/blob/master/src/main/java/org/apache/log4j/chainsaw/components/tabbedpane/ChainsawTabbedPane.java#L126-L191
>
> If it works, I will refactor it further so we can reuse the writing and
> reading code for other components.
>
> I could not test it: writing and reading are not used, and I want to know
> when this should happen.
>
> Is it supposed to read this when we start the application and write it when
> the tab was changed?
>
> Kind regards,
> Christian
>
>