Re: ContextAwareAction menu display issue
Boris Heithecker <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAL465RErPaBToKe6hLig2Nn9FxhpdcC__kyN5b_ZGY6UnnR9PA@mail.gmail.com> |
Try call Action.setName(...) in your constructor. Boris 2016-03-07 19:14 GMT+01:00 winder <[email protected]>: > Setting lazy to false didn't work. > > > Code: > > @ActionRegistration( > displayName = "#CTL_EditGcodeFile", > lazy = false > ) > > > > > I tried setting `lazy=true` and the text displayed, but the enable state > is wrong until I use the action (I suppose the object isn't initialized > until it gets used when lazy is set to true). > > > > >