| // |
| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, |
| // software distributed under the License is distributed on an |
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // KIND, either express or implied. See the License for the |
| // specific language governing permissions and limitations |
| // under the License. |
| // |
| |
| = DevFaqTweakRegistryByCodeDeduction |
| :jbake-type: wiki |
| :jbake-tags: wiki, devfaq, needsreview |
| :jbake-status: published |
| :keywords: Apache NetBeans wiki DevFaqTweakRegistryByCodeDeduction |
| :description: Apache NetBeans wiki DevFaqTweakRegistryByCodeDeduction |
| :toc: left |
| :toc-title: |
| :syntax: true |
| |
| === How do I remove a menu item or toolbar button from an application's GUI? |
| |
| * If you want to remove the action from a toolbar, then remove entries like: |
| [source,xml] |
| ---- |
| |
| <folder name="Toolbars"> |
| <folder name="Build"> |
| <file name="org-nvarun-tat-SayCheez.shadow"> |
| <attr name="originalFile" |
| stringvalue="Actions/Tools/org-nvarun-tat-SayCheez.instance"/> |
| <attr name="position" intvalue="325"/> |
| </file> |
| </folder> |
| </folder> |
| |
| ---- |
| |
| * If you want to remove either one of the _separators_, or even both of them, then delete the entries looking like: |
| [source,xml] |
| ---- |
| |
| <file name="org-nvarun-tat-separatorAfter.instance"> |
| <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/> |
| <attr name="position" intvalue="175"/> |
| </file> |
| <file name="org-nvarun-tat-separatorBefore.instance"> |
| <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/> |
| <attr name="position" intvalue="125"/> |
| </file> |
| |
| ---- |
| |
| * If you want to remove the action from a menu, and retain it only on the toolbar, then remove entries like: |
| [source,xml] |
| ---- |
| |
| <folder name="Menu"> |
| <folder name="Tools"> |
| <file name="org-nvarun-tat-SayCheez.shadow"> |
| <attr name="originalFile" |
| stringvalue="Actions/Tools/org-nvarun-tat-SayCheez.instance"/> |
| <attr name="position" intvalue="150"/> |
| </file> |
| <file name="org-nvarun-tat-separatorAfter.instance"> |
| <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/> |
| <attr name="position" intvalue="175"/> |
| </file> |
| <file name="org-nvarun-tat-separatorBefore.instance"> |
| <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/> |
| <attr name="position" intvalue="125"/> |
| </file> |
| </folder> |
| </folder> |
| |
| ---- |
| |
| * If you want to remove an item from a module over which you have no control, such as a NetBeans Platform module, use the _hidden attribute: |
| [source,xml] |
| ---- |
| |
| <folder name="Toolbars"> |
| <folder name="Build"> |
| <file name="org-nvarun-tat-SayCheez_hidden"/> |
| </folder> |
| </folder> |
| |
| ---- |
| |
| === Apache Migration Information |
| |
| The content in this page was kindly donated by Oracle Corp. to the |
| Apache Software Foundation. |
| |
| This page was exported from link:http://wiki.netbeans.org/DevFaqTweakRegistryByCodeDeduction[http://wiki.netbeans.org/DevFaqTweakRegistryByCodeDeduction] , |
| that was last modified by NetBeans user Geertjan |
| on 2012-01-23T21:45:24Z. |
| |
| |
| *NOTE:* This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed. |