Strange message hover Enums [message #349404] |
Tue, 28 July 2009 04:52  |
Eclipse User |
|
|
|
Originally posted by: pomme_compote-bugzillaeclipse.yahoo.fr
Hi,
I have made an enum class for my error codes. Each error code is then used
in a properties file for localized messages. Hereunder a sample :
The enum :
public enum ErrorCodes {
ERR_O0O1;
public String getErrorMessage(Object... messageParameters) {
String errorMessage = bundle.getString(this.toString());
if (messageParameters != null && messageParameters.length > 0) {
errorMessage = MessageFormat.format(errorMessage,
messageParameters);
}
return errorMessage;
}
}
The properties file :
ERR_0001 = An error as occured.
When I put my pointer over an enum, I get this popup message : "The
properties file could not be detected". And when I crtl-click it, I have
two choices :
- Open in 'error.properties'
- Open Declaration
The second works, the first not with this message in the status bar :
"Could not determine properties file".
I'm quite interested if Eclipse is able to link automatically resource
bundles to my Enum. So, if anybody know how to make this work, it would be
great.
I use Eclipse 3.4.
Thanks on advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds