ResourceBundleWrapper - plugin detail
Generates wrapper accessor class for properties files
| Plugin owner: |
jayeaeotiv |
| Website: |
http://carrowyn.net |
| Added: |
2009-12-25 |
| Last updated: |
2009-12-25 |
| NetBeans Versions: |
6.8 |
| License: |
GPLv3 |
| Category: |
Programming Languages |
| Size: |
0.02 MB |
| Downloaded: |
236 times |
| Rating: |
|
Verifications for NetBeans versions
Decisions of individual verifiers for ResourceBundleWrapper plugin for NetBeans IDE 6.8
Comments
|
Introduction
Creates a Java class with simple wrappers for a properties file. Simply right click on the .properties file and choose the Create Wrapper Class item. A class with the name ${yourpropfile}Props.java will be created next to it.
For example if your properties file looks like this:
Db.ConnString=jdbc://blahblah
Db.UserName=User
Db.Password=Password
Then a wrapper would be created with the following methods:
String getDbConnString();
String getDbConnString(String defaultValue);
String getDbUserName();
String getDbUserName(String defaultValue);
String getDbPassword();
String getDbPassword(String defaultValue);
Enjoy!
What's new in this version
|
[ You have to be logged in to be able to comment. ]
User Comments
Plugin does work
This plugin works fine if the properties' file is in the src/ directory. At the project's root dir, it didn't work for me. I'm not sure if this is really a problem. The menu item should not show
Posted by melling on Jan 03, 2010
This didn't work
I created a new foo.properties file, added your 3 lines, then right-clicked on the filename and selected "Created Wrapper Class" and nothing happened. This was on a Solaris box running Netbeans 6.8.
Posted by melling on Dec 29, 2009