DevFaqActionAddProjectPopUp

(Difference between revisions)
Line 4: Line 4:
Just register an instance of the action in your XML layer under <tt>Actions/SomeFolder</tt> and add shadow reference in <tt>Projects/Actions/</tt>. It should implement a <tt>ContextAwareAction</tt> interface.
Just register an instance of the action in your XML layer under <tt>Actions/SomeFolder</tt> and add shadow reference in <tt>Projects/Actions/</tt>. It should implement a <tt>ContextAwareAction</tt> interface.
-
<pre>
+
<source lang="xml">
<filesystem>
<filesystem>
     <folder name="Actions">
     <folder name="Actions">
Line 20: Line 20:
     </folder>
     </folder>
</filesystem>
</filesystem>
-
</pre>
+
</source>
See also [[DevFaqActionAddProjectTypePopUp| How do I add an action to a project popup menu of a specific project type?]]
See also [[DevFaqActionAddProjectTypePopUp| How do I add an action to a project popup menu of a specific project type?]]

Revision as of 20:29, 24 July 2010

How do I add an action to a project popup menu?

Just register an instance of the action in your XML layer under Actions/SomeFolder and add shadow reference in Projects/Actions/. It should implement a ContextAwareAction interface.

<filesystem>
    <folder name="Actions">
        <folder name="SomeFolder">
            <file name="projectcontextmenudemo-DemoAction.instance"/>
        </folder>
    </folder>
    <folder name="Projects">
        <folder name="Actions">
            <file name="projectcontextmenudemo-DemoAction.shadow">
                <attr name="originalFile"
stringvalue="Actions/SomeFolder/projectcontextmenudemo-DemoAction.instance"/>
            </file>
        </folder>
    </folder>
</filesystem>

See also How do I add an action to a project popup menu of a specific project type?

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo