Den mån 5 dec. 2022 kl 19:21 skrev Neil C Smith <neilcsm...@apache.org>:

> On Mon, 5 Dec 2022 at 14:06, Patrik Karlström <pat...@trixon.se> wrote:
> >
> > Den fre 2 dec. 2022 kl 12:50 skrev Patrik Karlström <pat...@trixon.se>:
> >
> > >
> > > TitlePane.font={font}$Label.font
> > >>
> > >> Save the file and restart NetBeans.  Is that better?
> > >>
> > >> Neil
> > >>
> > >
> > > Thanks, I'll try this on Monday when I'm back on Windows.
> > >
> > >
> > Works great! Will use that until NB 17.
>
> Good to know.
>
> > Not a problem, just an observation; Hitting the "Edit custom properties
> > button" on a platform app without editors(?) results in
> > SEVERE [org.openide.util.Exceptions]
> > java.lang.NullPointerException: Cannot invoke
> > "org.netbeans.api.actions.Editable.edit()" because "editable" is null
>
> Hmmm.  That's annoying.  Pretty sure some basic editor support is
> brought in already by the dependencies of the options panel?  I
> deliberately implemented this without adding additional dependencies
> other than those brought in transiently already.
>
> Maybe should have used Openable here?  Or fall back to Openable if
> Editable is null?
>
> Any chance you could step through and find what DataObject we have
> here, and why it's not got an Editable?
>
> Ideally we might look at branding this button visibility.  Ideally we
> might also look at splitting off the options panel for FlatLaf into a
> separate module with different dependencies.  That was discussed in
> https://github.com/apache/netbeans/pull/4719
>
> Incidentally, I think this should support registering the additional
> properties file directly in a layer too, so might also be a way to
> deliver overrides for platform applications.
>
> Best wishes,
>
> Neil
>

Not really sure what you want me to step through but I created a new
platform project and added org-netbeans-swing-laf-flatlaf as a dependency
in order to reach it from the debugger.
With a breakpoint I get org.openide.loaders.DefaultDataObject@6dfe9bb0
[MultiFileObject@1a0c1113[LookAndFeel/FlatLaf.properties]] as the string
representation of the dob.

What else should I look for?

Patrik

Reply via email to