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.
Old Mobility plugin contained org.netbeans.modules.mobility.project.ui.wizard.SampleProjectIterator class that allows to create a plugin with samples. New ME Embedded project support does not contain this class anymore or its alternative. As the result ME SDK cannot deliver its samples as a NetBeans plugin
fixed in jet main: http://hg.netbeans.org/jet-main/rev/d8a845baea18 Example of usage in your layer.xml (this adds sample project contained in Demo.zip): <file name="Demo.zip" url="Demo.zip"> <!-- in this case Demo.zip with zipped NetBeans Java ME 8 project is located within the same directory as this layer.xml --> <attr name="displayName" bundlevalue="<KEY IN YOUR BUNDLE>"/> <attr name="iconBase" stringvalue="org/netbeans/modules/j2me/project/ui/resources/j2meProject.gif"/> <attr name="position" intvalue="100"/> <attr name="template" boolvalue="true"/> <attr name="instantiatingIterator" newvalue="org.netbeans.modules.j2me.project.wizard.J2MESampleProjectIterator"/> <attr name="instantiatingWizardURL" urlvalue="nbresloc:/<PATH TO HTML>"/> </file>
File templates in layer.xml should be put into folder Templates/Project/Samples/JavaME
Verified on 201402130001 build.
Integrated into 'main-silver', will be available in build *201402140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d8a845baea18 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #241505: Samples support is lost (J2ME) - fixed