Bug 244576 - [fiximprove]: Error in "Convert to MIDlet Project"
Summary: [fiximprove]: Error in "Convert to MIDlet Project"
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: General (show other bugs)
Version: 0.9   Edit
Hardware: PC Linux
: P1 enhancement (vote)
Target Milestone: 0.9.1   Edit
Assignee: Diego Madruga Sandin CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
Depends on: 255542
Blocks:
  Show dependency tree
 
Reported: 2008-08-19 12:54 EDT by Edwin Carlo Ribeiro Marinho CLA
Modified: 2008-12-30 14:21 EST (History)
5 users (show)

See Also:


Attachments
Patch with bug fix (182.01 KB, patch)
2008-11-28 14:36 EST, David Marques CLA
no flags Details | Diff
Patch with suggested changes (162.98 KB, patch)
2008-12-01 13:23 EST, David Marques CLA
wgp010: iplog+
wgp010: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Carlo Ribeiro Marinho CLA 2008-08-19 12:54:32 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. Create a new java project
2. On the perspective of "Mobile Tools for Java" click with the right button of the mouse on the created project
3. Press the item to convert to MIDlet project inside the "Mobile Tools for Java" submenu.

The project should be converted in the correct format. If it is an eclipse ME project the JAD file should be removed because it is no more used. The wizard to convert should appear properly. And if is configured to automatically create resources folder, the folder should be created.


More information:
Comment 1 Hugo Raniere CLA 2008-09-12 10:13:18 EDT
Hi Edwin, 

The "convert to MIDlet project" option inside the "Mobile Tools for
Java" submenu is supposed to convert Java Project, not EclipseME projects. In order to convert previous existing EclipseME projects, the import wizard must be used.

I don't think this is a bug, as it was not on our requirements, however, I think this is an interesting feature to add in the future. Therefore I'm reclassifying this bug to enhancement, and target milestone to futute.
Comment 2 lijin CLA 2008-10-05 23:29:35 EDT
how to avoid Convert to MIDlet Project error
1. Uninstall EclipseMe
2. Remove From Build Path  "Persisted container[J2MELIB for project xxx ]"
3. Convert to MIDlet Project is Ok
Comment 3 Gustavo de Paula CLA 2008-10-06 14:01:48 EDT
can we consider then this bug to be convert an eclipseME project into an mtj project? since that, if the "convert to midlet project" would be changed to identify that the project is an eclipseme project and then convert it automatically.
Comment 4 David Marques CLA 2008-11-17 08:42:11 EST
Hello everyone,

   I will take a look on this issue, and will submit a patch with this issue
solved.
Comment 5 David Marques CLA 2008-11-28 14:36:47 EST
Created attachment 119041 [details]
Patch with bug fix

I have a final patch for this issue, may someone revise it please ?
Thanks

David Marques
Comment 6 Gustavo de Paula CLA 2008-12-01 11:32:30 EST
just reviewed the patch. below are some comments:
- changes from patch https://bugs.eclipse.org/bugs/show_bug.cgi?id=255542 are mixed on this patch. it would also be nice to remove the changes on midletsuitefactory
- the patch also created a message.properties on the core plugin. this was really nice
- there is now a classe to do project conversion, but the class only converts eclipseme to mtj. it would be nice that the ui code that converts java to mtj would also be moved to this class
Comment 7 David Marques CLA 2008-12-01 13:23:47 EST
Created attachment 119186 [details]
Patch with suggested changes

Hello everyone,

I am sending a patch with the suggested changes.

[],

David Marques
Comment 8 David Marques CLA 2008-12-01 13:24:20 EST
Comment on attachment 119041 [details]
Patch with bug fix

A new patch with several improvements is attached.
Comment 9 Gustavo de Paula CLA 2008-12-01 13:53:50 EST
changes committed to svn
Comment 10 Gustavo de Paula CLA 2008-12-30 14:21:15 EST
bug released into 0.9.1