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.
[ BUILD # : 200510122200 ] [ JDK VERSION : 1.5.0_04 ] For some reason it has been removed. It can be added ahain but it will only stay put during the current NB session. After a restart it is gone.
*** Issue 66734 has been marked as a duplicate of this issue. ***
It was not removed intentionally, it just disappeared for some reason. I was reimplementing the actions.... It's a regression, it seems to be caused by the fix of issue #57494.
Well, I have no idea what's wrong. If I associate a shortcut with the action, it's displayed correctly in the Toolbar. Also, when I call ((InstanceDataObject) ((DataShadow) dob).getOriginal()).instanceCreate() where "dob" is the DataObject that represents the shadow to "org-netbeans-modules-debugger-ui-actions-FixAction" which is passed to org.openide.awt.Toolbar.Folder.acceptDataObject(dob), then the correct instance of DebuggerAction is created. Right after that ((org.openide.cookies.InstanceCookie.Of)cookie).instanceOf(javax.swing.Action.class)==true The shortcurs forces to create the instances, thus that explains why it works fine for actions with shortcuts. But InstanceCookie.Of.instanceOf() ... should return correct results regardless of whether the instance was created or not... ?? I've used the following pattern to specify the action, which is suggested at http://docs.spadac.com/ext/netbeans/www.netbeans.org/about/books/html/apis-c_theOpenApis.html <file name="com-mymodule-MyInterface.instance"> <attr name="instanceOf" stringvalue="com.mymodule.MyClass"/> <attr name="instanceCreate" methodvalue="com.mymodule.AnyClass.createMyClass"/> <attr name="instanceClass" methodvalue="com.mymodule.MyInterface"> </file> Can you please advice what's wrong? Thanks.
Likely DataSystem issue??
The example is BAD !!! It should be: <file name="com-mymodule-MyInterface.instance"> <attr name="instanceClass" stringvalue="com.mymodule.MyClass"/> <attr name="instanceCreate" methodvalue="com.mymodule.AnyClass.createMyClass"/> <attr name="instanceOf" methodvalue="com.mymodule.MyInterface"> </file> Then it works. Please document this, I've lost a *LOT* of time with such a crappy thing.
Fixed: /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/resources/mf-layer.xml,v <-- mf-layer.xml new revision: 1.30; previous revision: 1.29
Tested with build 200510171800.