NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Removing Menus, Options Panes, etc

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Jason Lee
Posted via mailing list.





PostPosted: Sat Mar 04, 2017 10:50 pm    Post subject: Removing Menus, Options Panes, etc Reply with quote

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
Back to top
arsi
Posted via mailing list.





PostPosted: Sat Mar 04, 2017 11:05 pm    Post subject: Removing Menus, Options Panes, etc Reply with quote

Hi,
Over layer.xml..

                



Arsi






From: Jason Lee
Sent: Saturday, March 04, 2017 11:48PM
To: Dev
Subject: [platform-dev] Removing Menus, Options Panes, etc



Quote:
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!








 



layer1.png
 Description:
 Filesize:  17.73 KB
 Viewed:  244 Time(s)

layer1.png



layer2.png
 Description:
 Filesize:  21.14 KB
 Viewed:  244 Time(s)

layer2.png


Back to top
Peter Hansson
Posted via mailing list.





PostPosted: Sun Mar 05, 2017 1:46 pm    Post subject: Removing Menus, Options Panes, etc Reply with quote

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 <address-removed ([email]address-removed[/email])> wrote:
Quote:
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
 Description:
 Filesize:  22.71 KB
 Viewed:  235 Time(s)

2017-03-05_14_37_04-NetBeans_IDE_8.2.png


Back to top
arsi
Posted via mailing list.





PostPosted: Thu Mar 09, 2017 7:26 am    Post subject: Removing Menus, Options Panes, etc Reply with quote

http://stackoverflow.com/questions/34825549/where-to-find-the-main-layer-xml-file-in-netbeans-rcp-maven-project


From: Jason Lee
Sent: Thursday, March 09, 2017 6:19AM
To: Dev
Subject: [platform-dev] Re: Removing Menus, Options Panes, etc



Quote:

I'm not seeing that. All I see under important files is this:
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo