首先,大家好(/world)!
我正在制作一个 Eclipse RCP 应用程序,该应用程序需要检查位于我在运行时知道的一些插件中的一些.properties 。
我想知道是否有一种简单的方法来阅读它们,例如我知道在我的插件 *org.anyname.myplugins 中。mypluginthatrocks我有一个名为myawsomeproperties .properties* 的文件,我怎样才能打开它并使用类似的 getter/setter 系统轻松读取它
String getInProperties(String fileNameOrPath,String myPropertieId)
void setInProperties(String fileNameOrPath,String myPropertieId,String myPropertieValue)
或者String getInProperties(File file,String myPropertieId)
void setInProperties(File file,String myPropertieId,String myPropertieValue)
或该类型中的任何其他意思,如果您明白我的意思...
提前谢谢^^