Bug 239979 - [MidletTemplates]: MIDlets templates
Summary: [MidletTemplates]: MIDlets templates
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: General (show other bugs)
Version: 0.9.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.0 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility, api, core, ui, usability
Depends on: 261536
Blocks:
  Show dependency tree
 
Reported: 2008-07-08 10:06 EDT by Gustavo de Paula CLA
Modified: 2009-07-09 09:56 EDT (History)
6 users (show)

See Also:


Attachments
patch for this bug V1 (109.84 KB, patch)
2008-08-12 00:39 EDT, Feng(Marvin) Wang CLA
no flags Details | Diff
Example Midlet Template (16.18 KB, application/zip)
2008-08-12 00:41 EDT, Feng(Marvin) Wang CLA
no flags Details
patch for this bug V2 (109.84 KB, patch)
2008-08-14 04:52 EDT, Feng(Marvin) Wang CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo de Paula CLA 2008-07-08 10:06:04 EDT
currently MTJ create an empty MIDlet. it would be nice to have a set of different MIDlets templates that can be selected during the create MIDlet wizard. 

we could also add an extension point that can be used by the different vendors to extend the default templates and add more
Comment 1 Feng(Marvin) Wang CLA 2008-08-12 00:39:11 EDT
Created attachment 109745 [details]
patch for this bug V1

How to use:
1. Apply the patch.
2. Import the org.eclipse.mtj.examples.midlettemplate project in the other attachment.
3. In the MTJ perspective, right click on Package Explorer or Navigator view, select new -> Java ME Midlet From Template.

Any advice is welcomed:)
Comment 2 Feng(Marvin) Wang CLA 2008-08-12 00:41:29 EDT
Created attachment 109746 [details]
Example Midlet Template

This example project provide a Hello World Midlet Template example
Comment 3 Feng(Marvin) Wang CLA 2008-08-14 04:52:07 EDT
Created attachment 109967 [details]
patch for this bug V2

patch V1 contains a bug that if one line contains 2 or more template strings (string like $toBeSubstitute$), it will not be substituted correctly.
V2 fix this.
Comment 4 Feng(Marvin) Wang CLA 2008-08-29 01:20:29 EDT
Hi gep,

I am thinking about build-in  midlet templates. If you think my midlet template solution is acceptable, I wonder if you can help me ask Moto/Nokia J2me SDK guys to provide some demo Midlet applications source code that comply EPL license. So I can make them as build-in templates with MTJ.

Thanks,
Feng
Comment 5 Gustavo de Paula CLA 2008-08-30 14:54:11 EDT
hi feng,

i liked the midlet template feature a lot. the only concern that i have to commit it is because right now we don't have any template at all.

so i was wondering if it would not be better to postpone this feature to another release and work with some vendors, as you suggested, to get some templates. then we can commit both the template feature and the templates it self.

right now at least on mot we don't have any template :( 

:)
gep

(In reply to comment #4)
> Hi gep,
> 
> I am thinking about build-in  midlet templates. If you think my midlet template
> solution is acceptable, I wonder if you can help me ask Moto/Nokia J2me SDK
> guys to provide some demo Midlet applications source code that comply EPL
> license. So I can make them as build-in templates with MTJ.
> 
> Thanks,
> Feng
> 

Comment 6 Diego Madruga Sandin CLA 2009-03-30 18:09:34 EDT
5 templates were added.
Comment 7 Gustavo de Paula CLA 2009-07-09 09:56:45 EDT
released on MTJ 1.0