I developing a plugin which reads from a .properties file for the database connection, but after exporting the plugin, the .properties file is wrapped up inside the jar'ed plugin and not able to be changed on the fly.
did some research, some suggested creating fragments or features to compliment the reading of the properties file on the fly and points to
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.pde.doc.user/reference/开发者_JAVA百科pde_feature_generating_build.htm
tried using eclipse to creature fragments but am lost as in how to create a feature t
You could install the properties file in the root of the target Eclipse installation (or the root of your RCP application). You can then access it using Platform.getInstallLocation()
.
With regards to creating a feature, the Eclipse RCP tutorial "Creating a Rich Client Application" contains a section entitled "Define a feature-based product".
精彩评论