Bug 148016 - [rename] renaming similarly named types [refactoring]
Summary: [rename] renaming similarly named types [refactoring]
Status: RESOLVED DUPLICATE of bug 67326
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 07:02 EDT by Sven Efftinge CLA
Modified: 2006-09-06 07:17 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2006-06-21 07:02:44 EDT
It would be cool if the rename refactoring on class and interface names would allow for renaming similar named classes and interfaces.
For instance, if an interface 'MyService' should be renamed it would be cool if 'MyServiceImpl' would also be renamed (optionally).
Comment 1 Tobias Widmer CLA 2006-06-21 07:09:37 EDT
This would be a nice enhancement for the Rename Similar Elements story.
Comment 2 Tobias Widmer CLA 2006-06-21 07:10:25 EDT
Markus, is there any reason why this has not been implemented?
Comment 3 Markus Keller CLA 2006-06-21 07:16:11 EDT
> Is there any reason why there are open bugs?
Yes, someone has to invest some work.

This is not as trivial as it sounds, since we have to make sure that the story does not break participants. Needs some work, but I don't see insurmountable problems.
Comment 4 Gunnar Wagenknecht CLA 2006-09-06 05:23:41 EDT
Looks like a dup of bug 67326. 

See also my comment (bug 67326 comment 2) there. I tried implementing a solution for this using a RenameParticipant but it's not as easy as it looks. I have a requirement to "force" a rename (or move) of a second interface whenever a certain interface is renamed and or moved.
Comment 5 Markus Keller CLA 2006-09-06 07:17:23 EDT

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