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 - Samples support is lost
Summary: Samples support is lost
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 17:25 UTC by alexander.burdukov
Modified: 2014-02-14 02:54 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 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