Bug 240665 - Create Run/Debug configuration on MIDlet Wizard
Summary: Create Run/Debug configuration on MIDlet Wizard
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: UI (show other bugs)
Version: 0.9   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.9   Edit
Assignee: Diego Madruga Sandin CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, ui, usability
Depends on:
Blocks:
 
Reported: 2008-07-14 08:48 EDT by Gustavo de Paula CLA
Modified: 2008-10-15 09:23 EDT (History)
3 users (show)

See Also:


Attachments
patch for this (57.36 KB, patch)
2008-08-14 21:29 EDT, Feng(Marvin) Wang CLA
no flags Details | Diff
Correct two typos in Java doc (57.36 KB, patch)
2008-08-14 21:58 EDT, Feng(Marvin) Wang CLA
wds057: iplog+
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-14 08:48:27 EDT
Currently the developer needs to manually configure his run/debug configuration everytime that he creates a new midlet inside a midlet suite.

a way to improve this feature is to add an option in the "Create MIDlet" wizard to  automatically create a run and/or debug configuration for that specific MIDlet.

Probably a good to do it:
- Create two checkboxes on the "Create MIDlet" wizard. similar to the "Add to Application descriptor checkbox"
- The first one can be "Create Run Configuration" and the second "Create Debug Configuration"
- The checkboxes can be marked by default (since usually the user will want to execute each MIDlet he creates)
- The final name of the Run / debug configurations can be: <project name>.<MIDlet name>
Comment 1 Feng(Marvin) Wang CLA 2008-07-16 05:52:45 EDT
Hi gep,

When user right click a Midlet and select run/debug as...-> Emulated Java ME Midlet, it will automatically vreate a run/debug configuration. User need not create one manually.
Comment 2 Gustavo de Paula CLA 2008-07-17 17:24:48 EDT
hi feng,

but in the end this is a two steps process that i think it is not necessary, since everytime that the user creates a midlet he will definitely wants to run it :) 

i was talking with diego about this and one suggestion that he has is that when the run is pressed we automatically launch a class that extends MIDlet. if there is more than one midlet we present a dilog with the list of midlets. do you think that make sense? according to diego we might need a perspective to do that (i already opened a bug to create a mtj prespective :)).

:)
gep
Comment 3 Feng(Marvin) Wang CLA 2008-07-23 04:16:41 EDT
Hi gep,

I am creating a patch that will allow user select a project/package -> click run/debug button -> select run as Midlet -> choose a Midlet among all Midlets in the project/package -> launching.

This patch is much like Applet launcher in JDT. 

Do you think it will solve the issue?

Thanks
Feng

(In reply to comment #2)
> hi feng,
> 
> but in the end this is a two steps process that i think it is not necessary,
> since everytime that the user creates a midlet he will definitely wants to run
> it :) 
> 
> i was talking with diego about this and one suggestion that he has is that when
> the run is pressed we automatically launch a class that extends MIDlet. if
> there is more than one midlet we present a dilog with the list of midlets. do
> you think that make sense? according to diego we might need a perspective to do
> that (i already opened a bug to create a mtj prespective :)).
> 
> :)
> gep
> 

Comment 4 Feng(Marvin) Wang CLA 2008-07-23 04:26:46 EDT
One more comment:

The patch I am creating is exactly like Diego's suggestion. And I find it don't need a special perspective to function.

BTW, I think MTJ perspective is useful and have already append a patch about that.

(In reply to comment #2)
> hi feng,
> 
> but in the end this is a two steps process that i think it is not necessary,
> since everytime that the user creates a midlet he will definitely wants to run
> it :) 
> 
> i was talking with diego about this and one suggestion that he has is that when
> the run is pressed we automatically launch a class that extends MIDlet. if
> there is more than one midlet we present a dilog with the list of midlets. do
> you think that make sense? according to diego we might need a perspective to do
> that (i already opened a bug to create a mtj prespective :)).
> 
> :)
> gep
> 

Comment 5 Gustavo de Paula CLA 2008-08-13 09:55:43 EDT
hi feng,

sorry for the late response... i think if we have some like what you suggest it
would definitely solve the issue.

besides that it is more the eclipse-way of launching and improve the developer
workflow with mtj
:)
gep


(In reply to comment #3)
> Hi gep,
> 
> I am creating a patch that will allow user select a project/package -> click
> run/debug button -> select run as Midlet -> choose a Midlet among all Midlets
> in the project/package -> launching.
> 
> This patch is much like Applet launcher in JDT. 
> 
> Do you think it will solve the issue?
> 
> Thanks
> Feng
> 
> (In reply to comment #2)
> > hi feng,
> > 
> > but in the end this is a two steps process that i think it is not necessary,
> > since everytime that the user creates a midlet he will definitely wants to run
> > it :) 
> > 
> > i was talking with diego about this and one suggestion that he has is that when
> > the run is pressed we automatically launch a class that extends MIDlet. if
> > there is more than one midlet we present a dilog with the list of midlets. do
> > you think that make sense? according to diego we might need a perspective to do
> > that (i already opened a bug to create a mtj prespective :)).
> > 
> > :)
> > gep
> > 
> 

Comment 6 Feng(Marvin) Wang CLA 2008-08-14 21:29:52 EDT
Created attachment 110058 [details]
patch for this

enhance Midlet launching feature. Make it more like what Applet launching did.
Comment 7 Feng(Marvin) Wang CLA 2008-08-14 21:58:15 EDT
Created attachment 110059 [details]
Correct two typos in Java doc

I misspell 'future' to 'feature' in Java doc. Correct it now:)
Comment 8 Diego Madruga Sandin CLA 2008-08-20 12:08:39 EDT
The MIDlet launching enhancement was integrated.
Comment 9 Gustavo de Paula CLA 2008-10-15 09:23:24 EDT
all bugs we integrated and release on MTj 0.9