Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Selecting files for refactoring
Selecting files for refactoring [message #1017838] Tue, 12 March 2013 16:12 Go to next message
Giga G. is currently offline Giga G.Friend
Messages: 3
Registered: March 2013
Junior Member
Hi,

I'm using Eclipse Juno SR2 for editing C++ code. The list of projects imported into Eclipse includes:
a. References to read-only global source repository, indexed to be used for global searches
b. Read-write copy of a small part of the repository (one or more sub-projects) that are currently edited in developer's workspace

When refactoring is run on an entity in a read-write source file, the procedure scans all the projects imported and finds read-only references to the files containing entities affected by the refactoring. The following message is generated then:
File '/path/file.cc' is read-only. Do you wish to make it writable?

The read-only file comes from the referenced global source repository, so I cannot make it writable and the following error message is generated:
A fatal error occurred while performing the refactoring
- File '/path/file.cc' is read-only

I could not find a workaround for this problem. In Eclipse Galileo that we used previously, one could select the list of files to be refactored and read-only files were not considered a fatal error for the refactoring procedure.

I would appreciate your guidance on how to resolve or work around this problem.

Thank you in advance,
Giga

Re: Selecting files for refactoring [message #1018203 is a reply to message #1017838] Wed, 13 March 2013 11:45 Go to previous messageGo to next message
Giga G. is currently offline Giga G.Friend
Messages: 3
Registered: March 2013
Junior Member
The major difference in refactoring between Galileo and Juno is that the former has "Scope of refactoring" feature allowing to select "related projects", thus the search can only be performed in read-write projects. In Juno, this feature is missing and instead there's "Exhaustive (slow) file search in" option (see the images below).

Can a scope of refactoring be specified in Eclipse Juno for C++ code?

Thank you
Giga

index.php/fa/13826/0/

index.php/fa/13827/0/
Re: Selecting files for refactoring [message #1022328 is a reply to message #1018203] Thu, 21 March 2013 17:19 Go to previous message
Giga G. is currently offline Giga G.Friend
Messages: 3
Registered: March 2013
Junior Member
Could anyone guide me where I should open a feature request so that it's addressed?

Thanks
Giga
Previous Topic:Understanding Eclipse Development
Next Topic:ContentProposal on Combo - problem with Linux
Goto Forum:
  


Current Time: Thu Apr 25 23:47:19 GMT 2024

Powered by FUDForum. Page generated in 0.02429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top