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 241505

Summary: Samples support is lost
Product: javame Reporter: alexander.burdukov
Component: ProjectAssignee: Roman Svitanic <rsvitanic>
Status: CLOSED FIXED    
Severity: normal    
Priority: P1    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description alexander.burdukov 2014-02-06 17:25:15 UTC
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
Comment 1 Roman Svitanic 2014-02-07 16:20:18 UTC
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>
Comment 2 Roman Svitanic 2014-02-07 16:36:30 UTC
File templates in layer.xml should be put into folder Templates/Project/Samples/JavaME
Comment 3 alexander.burdukov 2014-02-13 20:07:34 UTC
Verified on 201402130001 build.
Comment 4 Quality Engineering 2014-02-14 02:54:11 UTC
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