Re: Removing Menus, Options Panes, etc
Peter Hansson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYPJu6suUbmuw6CfYa=aKAfy1KekpCVw2fi2-rSuTjTpFQ@mail.gmail.com> |
Arsi's answer is what you are looking for. However, I would like to attach some notes to it. For this kind of customization I always do it on the "Branding" project unless it is really obvious that it should be an individual module which should be removing a certain menu item. For example I have a custom About box which is implemented in a module and in that case it seems logical that it would be job of that module, rather than the "Branding" module, to remove the default menu item for "About". But in 99% of cases where I want to remove from standard menu items, I do it in the "Branding" module. As for "View --> IDE Log" menu item I actually keep it, but just rename it. For support situations this menu item is handy to keep around. It is no longer an "IDE Log", but an "Application Log". Doing this is extremely simple. Again you would want to do this from your "Branding" module. Just right-click the project node and choose "Branding...". Then in the Resource Bundle tab you would want to change the values as I've done below: After this change the menu item will be called "Application Log" and the tab in the Output window will be called "Log". I hope this gave you an idea about how things work. All instructions above are for a Maven project, naturally. Kind regards Peter On Sat, Mar 4, 2017 at 11:48 PM, Jason Lee <[email protected]> wrote: > By default, NetBeans RCP applications include a number of UI elements, > some of which I'd like to be able to strip out. For example, View -> IDE > Log, Tools -> Templates, and, say, the Keymap options panel. Is there a > mechanism (in a Maven-based RCP project, in case that matters) to suppress > or remove items like that? If I had to guess, it might involve removing > some of the core cluster (?)/module dependencies, but I don't know if 1) > that's possible or 2) what the unintended consequences of that might be. > > Anybody have ideas or pointers? Thanks! > > -- > Jason Lee > http://jasondl.ee > http://jasondl.ee/twitter > http://jasondl.ee/in > http://jasondl.ee/+ > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > >
2017-03-05 14_37_04-NetBeans IDE 8.2.png
(image/png, 22.7 KB) - not displayed