Bug 128413 - [find/replace] in-place replace of matches (was: implement SyncEdit feature (like in JBuilder))
Summary: [find/replace] in-place replace of matches (was: implement SyncEdit feature (...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P5 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL: http://www.borland.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 09:44 EST by x y CLA
Modified: 2019-09-06 15:35 EDT (History)
4 users (show)

See Also:


Attachments
before switching to SyncEdit (12.24 KB, image/gif)
2006-02-17 09:53 EST, x y CLA
no flags Details
after switching to SyncEdit (12.42 KB, image/gif)
2006-02-17 09:54 EST, x y CLA
no flags Details
SyncEdit is used to edit simultaneoulsy "parameter" identifier (7.93 KB, image/png)
2006-02-18 07:19 EST, x y CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description x y CLA 2006-02-17 09:44:31 EST
It's very surprising Eclipse doesn't have this poweerful feature.
Comment 1 x y CLA 2006-02-17 09:53:05 EST
Created attachment 34914 [details]
before switching to SyncEdit
Comment 2 x y CLA 2006-02-17 09:54:06 EST
Created attachment 34915 [details]
after switching to SyncEdit
Comment 3 x y CLA 2006-02-18 07:19:01 EST
Created attachment 34960 [details]
SyncEdit is used to edit simultaneoulsy "parameter" identifier

SyncEdit is a convenient editing tool that allows you to simultaneously edit duplicate identifiers.
Note, that it's not the same as 'Rename variable/method/class/...' refactoring.

In attached screenshot SyncEdit is used to edit simultaneoulsy "parameter" identifier in:
-code (multiple occurences);
-javadoc comment;
-comment;
-String literals.
Comment 4 x y CLA 2006-02-18 07:50:42 EST
Eclipse's "Quick Assist - Rename in file" feature is very alike SyncEdit.
But, unfortunately, less powerful - see Comment #3.
Comment 5 Markus Keller CLA 2006-02-22 09:35:54 EST
The main difference seems to be that Eclipse's 'Rename in File' only links real references but does not link into string literals and free-form comments, where we cannot be sure that a word really refers to the renamed java element.

To do textual replacements, you can use the Edit > Find/Replace... dialog.
Comment 6 x y CLA 2006-02-23 04:38:46 EST
(In reply to comment #5)

> To do textual replacements, you can use the Edit > Find/Replace... dialog.

I agree that we can do the same thing by "Find/Replace..." dialog, but it differs from SyncEdit like Eclipse differs from Notepad :)
SyncEdit is much more elegant and user friendly for local renaming of duplicate identifiers. E.g.:
-all occurences of currently selected identifier are highlighted;
-all occurences of currently selected identifier and updated in real-time;
-in SyncEdit mode we can rename occurences of one identifier, and than just click on another identifier and do the same thing on it;
-no Copy(identifier's name) and Paste(in "Find/Replace..." dialog) is needed - just click on what you want to edit.
Comment 7 Martin Aeschlimann CLA 2006-02-24 06:17:43 EST
Please try Quick Fix - Rename in File (Cttl + 2 + R), which I think is more convenient than SyncEdit.

It connects all identifeirs and renames them in real time, but you don't have 
to select a range first. Just assign a fast short cut to it (e.g. I'm using '`').



Comment 8 x y CLA 2006-02-24 07:36:00 EST
>Please try Quick Fix - Rename in File (Cttl + 2 + R),
>which I think is more convenient than SyncEdit.
Yes, feature is very alike SyncEdit, but look at Comment #3 - "Rename in File" doesn't recognize identifiers in string literals and comments (and that's not all - see below).

>It connects all identifiers and renames them in real time,
>but you don't have to select a range first.
The problem is sometimes i DO need to do changes in some range only.

I think SyncEdit can be implemented as some specific kind of "Rename in File".
E.g. in "Rename in File" preferences two check boxes could be added:
1) [] also change identifiers in string literals and comments;
2) [] do renamings in selected text only.
Comment 9 Martin Aeschlimann CLA 2006-02-24 08:33:50 EST
ok I see. But we will not have time to add these features for 3.2.
Comment 10 Mark Fortin CLA 2008-12-04 17:12:19 EST
I noticed that the Resolution = LATER (deprecated) means that "Such bugs are not considered as resolved."  So here is a vote from myself and the rest of our development staff (7 of us in total) who would all love to see the SyncEdit feature from JBuilder replicated in Eclipse.  Thanks for continuing to perfect such a terrific tool!

Mark Fortin
Comment 11 Eclipse Webmaster CLA 2009-08-30 02:40:35 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 12 Anna Talis CLA 2010-03-02 11:26:32 EST
I've been using JBuilder 2006 for years and now am switching to Eclipse.  I can't believe SyncEdit feature is not available!  I needed it, in spite of all the other replace options, within 2 hours of starting to work in Eclipse.
Comment 13 x y CLA 2010-10-24 09:17:05 EDT
Reopening since it's still valid for me.
Comment 14 Dani Megert CLA 2010-11-30 06:21:58 EST
See also bug 29692.
Comment 15 Eclipse Webmaster CLA 2019-09-06 15:35:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.