This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181141 - new action wizard fails to add elements to layer.xml in netbeans module
Summary: new action wizard fails to add elements to layer.xml in netbeans module
Status: RESOLVED DUPLICATE of bug 181358
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-24 07:40 UTC by Kenneth Ganfield
Modified: 2010-03-10 19:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2010-02-24 07:40:32 UTC
When using the New Action wizard in a Maven NetBeans module project, the wizard fails to add all the attributes of the new action to the layer file.

Steps to reproduce
1. Create NetBeans module project.
2. Open the New Action wizard and step through pages to add an action.

When you look at the layer.xml file, the IDE adds an entry to the file, eg

<folder name="Build">
     <file name="com-mycompany-abcmaven-SomeAction.instance"/>
</folder>

but does not add any additional attributes for the file that are added when creating module using Ant, eg

<attr name="delegate" methodvalue="org.openide.awt.Actions.inject"/>
<attr name="displayName" bundlevalue="com.mycompany.abcmaven.Bundle#CTL_SomeAction"/>
<attr name="injectable" stringvalue="com.mycompany.abcmaven.SomeAction"/>
<attr name="instanceCreate" methodvalue="org.openide.awt.Actions.context"/>
<attr name="noIconInMenu" boolvalue="false"/>
<attr name="selectionType" stringvalue="EXACTLY_ONE"/>
<attr name="type" stringvalue="com-mycompany-abcmaven-MyDataObject"/>
Comment 1 Milos Kleint 2010-02-25 00:51:47 UTC
I suppose that is not an issue in the maven support itself but either in the apisupport or it's interaction with the maven codebase. Maven support only provides location of the layer file, the content is filled by apisupport wizard. Apparently some condition is not met in maven support..
Comment 2 Jesse Glick 2010-03-10 19:58:52 UTC
Probably was just generating old code style.

*** This bug has been marked as a duplicate of bug 181358 ***