Adding a Menu Item to Netbeans platform Menu Bar
<p>I'm trying to create a mock menu for a module of my netbeans platform project (which I'm starting).</p>

<p>I want to create a new entry "New" in "File" that would have "New Project" and "New Module".</p>

<p>In Important Files -> Xml Layer -> this layer in context -> Menu Bar -> File I've created a new folder "New", and it displays as it should.</p>

<p>Then I've added two empty files, "New Project" and "New Module", but they don't show.</p>

<p>Here's layer.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd"&gt;
&lt;filesystem&gt;
    &lt;folder name="Actions"&gt;
        &lt;folder name="File"/&gt;
    &lt;/folder&gt;
    &lt;folder name="Menu"&gt;
        &lt;folder name="File"&gt;
                            &lt;folder name="New"&gt;
                &lt;file name="New Module" url="New Module_2"&gt;
                    &lt;attr name="requireProject" boolvalue="false"/&gt;
                    &lt;attr name="position" intvalue="800"/&gt;
                &lt;/file&gt;
                &lt;file name="New Project" url="New Project_3"&gt;
                    &lt;attr name="requireProject" boolvalue="false"/&gt;
                    &lt;attr name="position" intvalue="600"/&gt;
                &lt;/file&gt;
            &lt;/folder&gt;
        &lt;/folder&gt;
    &lt;/folder&gt;
&lt;/filesystem&gt;
</code></pre>

<p>I've deleted and created these files several times, hence the suffixes. The only thing I've added is positions.</p>

<p>I guess I'm either missing something or I misinterpreted something. I've read the documentation, but cannot find the answer.</p>

<p>So, how do I add and display a Menu Item?</p>