0
首先,大家好(/ 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)
或該類型的任何其他平均的easyly讀它,如果你明白我的意思是......提前^^
我得到了「NLS丟失消息:tamiflu:com.example.rcpapp」並且無法計算如何擺脫它... 我已經在eclipse幫助中心跟蹤了這個例子。 我在我的插件的根文件夾中有一個messages.properties文件, 我做了一個Messages類和所有。 我肯定錯過了什麼,但什麼? :/ – Ar3s 2009-07-23 12:30:38