Rename Eclipse not working fully

Ok, I totally figured it out.

I have several java projects in my eclipse workspace (about 25). Most projects use linked source folders.

When I rename a class in Project1, references to this class in other projects are not updated. Links in the project are updated very well. The end result is compilation errors during the next automatic recompilation.

I am using Eclipse 3.5.1, but the same behavior was shown 3.4.0 and 3.4.2

Any ideas on how to fix this?

My current plan - after a 20-minute search query - write a script to convert the linked source folders as OS links (I'm on Linux) in the project folders themselves. Therefore, I no longer use linked source folders.

+5
source share
3 answers

In the words of Philip Faith, it works fine if your projects are defined as a relationship to each other. Make sure your project build path is configured this way.

Linked IMHO folders for external files, not for other projects.

Another problem is that if you simply refer to the bank as a dependency (that is, on the way to the project class), eclipse will not be able to know that the collection was built on the basis of another project source, so it will not be reorganized properly.

eclipse (.project .classpath) , , , . , , .

+1

, . : ?

0

, , Java-. , (, ) . , , ...

0

All Articles