Bug 248416

Summary: "Run from JAD" in jad editor doesn't work if project is renamed
Product: [Tools] MTJ (Archived) Reporter: Hugo Raniere <hugo.raniere>
Component: MTJ projectsAssignee: Hugo Raniere <hugo.raniere>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: wds057, wgp010
Version: 0.9Keywords: ui
Target Milestone: 0.9   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix for this bug
none
fix for this bug none

Description Hugo Raniere CLA 2008-09-24 07:35:54 EDT
Overview: 

    If a project that was previously launched as emulated Java ME JAD is renamed, the links 'Launch as emulated Java ME JAD' and 'Launch as emulated Java ME JAD in Debug mode' on the Application Descriptor editor won't work anymore until an Eclipse restart.

Steps to Reproduce: 

    1) Open the Application Descriptor editor of an existing MIDlet project
    2) On the 'Overview' tab click on 'Launch as emulated Java ME JAD'
    3) Close the emulator (the running instance from step 2)
    4) Rename the project ('Refactor' > 'Rename...')
    5) On the 'Overview' tab click on 'Launch as emulated Java ME JAD' again

Actual Results: 

    The emulator does not on the second call to 'Launch as emulated Java ME JAD'

Expected Results:

    The emulator running and the MIDlet suite started properly.

-----------Enter bugs above this line-----------
MTJ (version) 0.9RC1
Installation : eclipse-SDK-3.4.0 (I20080617-2000) 
MTJ install  : mtj-runtime
java.runtime : Sun 1.5.0_11
os.name:     : Windows XP 5.1, Service Pack 2
------------------------------------------------
Comment 1 Hugo Raniere CLA 2008-09-25 12:04:23 EDT
Created attachment 113478 [details]
fix for this bug

Patch for this bug.

It closes the JAD editor if the project is renamed, moved, closed or deleted, in the same way the Manifest Editor in PDE does.

When the user reopen the editor, the run/debug links work sucessfully
Comment 2 Hugo Raniere CLA 2008-09-25 12:04:37 EDT
Created attachment 113479 [details]
fix for this bug

Patch for this bug.

It closes the JAD editor if the project is renamed, moved, closed or deleted, in the same way the Manifest Editor in PDE does.

When the user reopen the editor, the run/debug links work successfully.
Comment 3 Hugo Raniere CLA 2008-09-26 14:19:23 EDT
Patch committed to SVN.
Comment 4 Gustavo de Paula CLA 2008-10-15 09:22:30 EDT
all bugs we integrated and release on MTj 0.9