MrZander
MrZander

Reputation: 3120

Prevent eclipse from renaming multiple files

I am using eclipse for a project that has multiple XML files in separate folders.

For example:

Folder A
    1.xml
    2.xml
    3.xml
Folder A_Large
    1_large.xml
    2_large.xml
    3.xml

If I rename A_Large/3.xml to 3_large.xml it will rename both instances of 3.xml leaving me with:

Folder A
    1.xml
    2.xml
    3_large.xml
Folder A_Large
    1_large.xml
    2_large.xml
    3_large.xml

I know I can hit Preview on the renaming dialog and specify what files will be renamed, but it never used to rename files like this, I must have changed some option.

How do I prevent eclipse from doing this?

Upvotes: 1

Views: 347

Answers (1)

Elye M.
Elye M.

Reputation: 2747

Select your file you wanna rename, go to Refactor >> Rename , it should rename only that file.

Upvotes: 1

Related Questions