Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Strange message hover Enums
Strange message hover Enums [message #349404] Tue, 28 July 2009 04:52 Go to next message
Eclipse UserFriend
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.
Re: Strange message hover Enums [message #439867 is a reply to message #349404] Fri, 31 July 2009 03:01 Go to previous message
Eclipse UserFriend
Originally posted by: pomme_compote-bugzillaeclipse.yahoo.fr

It's seems that nobody has an answer to this problem. Will make without
this convenience …
Previous Topic:Replace version of JUnit in Galileo with previous version from Ganymede?
Next Topic:Source File Path
Goto Forum:
  


Current Time: Sun Sep 14 06:59:33 EDT 2025

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

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

Back to the top