Re: How to override the Netbeans Platform (x) button or the netbeans platform default close operation
Steven Yi <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CANtcCs5u5RWP-UG0uB3i7Jt_MY5PdkgrAvt=G4Rr+44c_0ugfA@mail.gmail.com> |
Hi Jason, Glad that was useful and that you've got your problem solved! All best! steven On Mon, Oct 3, 2016 at 9:52 AM, JasonVanBiezen <[email protected]> wrote: > Hello Steven! > > Thank you for your reply, I got it working, but it wasn't what I thought.. You are correct: it is the ModuleInstaller's closing() method that needs to be overridden. But it turns out that I wasn't checking the correct open file class instance in my ModuleInstaller; I was pointing to an old, unedited instance, so the closing method exited without a dialog prompt to the user (it thought there were no unsaved changes [Embarassed] ). > > Still, it would have taken me a while to revisit the closing() override code since I had assumed at a glance that it was working as I expected if you didn't reply, so thank you again for taking the time to reply! :D > > > >