Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 46924 - Moving a class to a different package does not update run/debug configs
Summary: Moving a class to a different package does not update run/debug configs
Status: RESOLVED DUPLICATE of bug 21892
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 05:08 EST by Rob Jones CLA
Modified: 2003-11-19 09:43 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Jones CLA 2003-11-19 05:08:36 EST
When you move a (Java) class that has a main()
from one package to another the run/debug configs are not updated.

Example (which will explain better)

Create package 'toplevel'
create class MyMainClass.java
with a main() that say outputs 'hello world' or something.
create a run config
(From menu choose run | run and create a 'new application'
 that uses MyMainClass as its main class)
Optionally Test that you can run your class from the config.

Ok, now create a package 'toplevel.nextlevel'
Now refactor | rename
or drag and drop
MyMainClass from toplevel to toplevel.nextlevel
Any references to the class from other classes are updated
as is the package reference inside the class itself
however the run config remains putting to the old place
and must be manually updated to reflect the new location
of the main class.

Hope that makes sense. If not ask.

Rob
Comment 1 Jerome Lanneluc CLA 2003-11-19 05:20:30 EST
Moving to JDT Debug for comments
Comment 2 Darin Wright CLA 2003-11-19 09:43:46 EST

*** This bug has been marked as a duplicate of 21892 ***