java - Where to find the main layer.xml file in Netbeans RCP maven project? -


i trying dev application based on netbeans rcp, far good, change default menu (hide menu don't want / need).

i found have edit layer.xml, don't know find default one.

i can create new layer.xml, module.

any ? thanks.

short answer: there isn't one, need create manually , modify liking.

longer answer: there no 'default' layer.xml 'app'. keep in mind, nbp app platform + bunch o' modules. there no 'main' module.

each module can have (single) layer.xml file (rather, each module have layer.xml file, albeit generated). @ run-time, platform (module system?) merges layer.xml files modules bundled app.

layer xml no longer necessary introduction of annotations (i think thats reason, mistaken). nbp build generates layer.xml annotations in module's source files. after building module, can see in output directory 'generated-layer.xml'.

ooh! @ generated-layer.xml

creating xml layer file:
right click on module in project tree , select new -> xml layer (if not in menu, select other choose module development category, xml layer file type new file dialog -- see below)

enter image description here

once created, should see xml layer node under important files tree, layer.xml file source tree.

to hide items, add _hidden entries layer.xml file, or can delete them layer tree:

enter image description here

find element want remove under , press delete. add _hidden element layer file.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -