Si desarrollamos un plugin para NetBeans usamos el archivo layer.xml para definir los lugares donde se mostrara.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
<folder name="Actions">
<folder name="Window">
<file name="org-avbravo-couchdb-DemoAction.instance">
<attr name="component" methodvalue="org.avbravo.couchdb.DemoTopComponent.findInstance"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_DemoAction"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
</file>
<file name="org-avbravo-couchdb-DemoDBAction.instance">
<attr name="component" methodvalue="org.avbravo.couchdb.DemoDBTopComponent.findInstance"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_DemoDBAction"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
</file>
</folder>
</folder>
<folder name="Menu">
<folder name="File">
<file name="org-avbravo-couchdb-Explorar.instance">
<attr name="delegate" newvalue="org.avbravo.couchdb.Explorar"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_Explorer"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
<attr name="noIconInMenu" boolvalue="false"/>
</file>
</folder>
</filesystem>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
<folder name="Actions">
<folder name="Window">
<file name="org-avbravo-couchdb-DemoAction.instance">
<attr name="component" methodvalue="org.avbravo.couchdb.DemoTopComponent.findInstance"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_DemoAction"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
</file>
<file name="org-avbravo-couchdb-DemoDBAction.instance">
<attr name="component" methodvalue="org.avbravo.couchdb.DemoDBTopComponent.findInstance"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_DemoDBAction"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
</file>
</folder>
</folder>
<folder name="Menu">
<folder name="File">
<file name="org-avbravo-couchdb-Explorar.instance">
<attr name="delegate" newvalue="org.avbravo.couchdb.Explorar"/>
<attr name="displayName" bundlevalue="org.avbravo.couchdb.Bundle#CTL_Explorer"/>
<attr name="iconBase" stringvalue="org/avbravo/couchdb/couchdb-icon-16px.png"/>
<attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
<attr name="noIconInMenu" boolvalue="false"/>
</file>
</folder>
</filesystem>
Comments