If I have a constant BAR in Foo, which I will use in a class C I\'ll have to write
Object o = Foo.BAR + \"...\";
which I can use Ctrl-Shift-M i
I don't know if it would fit your needs, but you can always have these constants defined in an interface and have all your classes just implement this interface. Then using some smart RegExp as others suggest you could get rid of all Foo. occurences.
Example:
public interface Foo {
static final String constant1 = "Some";
static final String constant2 = "Value";
//...
}
And then
public class YourClass implements Foo {
public YourClass() {
System.out.println("Hello " + constant1);
}
}