NetBeans Platform and Menus

Does anyone know how to edit the menus displayed on a skeleton created by the Netbeans platform?

Thanks in advance for your time to help me.

+5
source share
3 answers

Preamble: The only way to edit menu items present on the platform is one of your own modules. This means that in order to delete or rename a menu item in another module, you must first add the module to your application. Your application is not a module, but a (potential) set of modules.

The easiest way to edit menus for a platform based on the NB platform:

  • In one of your modules, expand Important Filesnode
  • XML Layer node ( , ¹)
  • This layer in context node
  • Menu Bar node
  • ( node) ( node) Delete

(_hidden entry), , . , , Restore.

Edit

:

  • , ,
  • node " "
  • name "SystemFileSystem.localizingBundle"
  • ( node Branding...)
  • Resource Bundles
  • Bundle node, , 3

node. , . , , .

:

  • 1 2
  • , (Ctrl + F) originalFile ( .instance) ²
  • , ,
  • delegate, , .

, . , , , .


¹ , , . layer.xml . , OpenIDE-Module-Layer: com/example/mymodule/layer.xml

² .instance originalValue Ctrl + F. , originalValue Actions/Window/org-netbeans-core-windows-actions-RecentViewListAction.instance, org-netbeans-core-windows-actions-RecentViewListAction.instance . , ( ).

+11

, , , , XML:

  • layers.xml
  • .xml node, , :
  • " " node
  • ( , ) . .
  • , , - > , , , .

PS: , .

+4

, , layer.xml .

+2

All Articles