Eclipse Buddy Concept - Property File [message #461562] |
Fri, 12 January 2007 08:49 |
Eclipse User |
|
|
|
Originally posted by: search-1984.gmx.ch
hi
can the eclipse buddy concept only be used for classloading? i'm trying to make some propertyfiles visible for another plugin but they just can't be recognized. am i doing something wrong or is it just not possible?
thanks in advance
regards
|
|
|
|
|
Re: Eclipse Buddy Concept - Property File [message #461636 is a reply to message #461633] |
Mon, 15 January 2007 07:32 |
Eclipse User |
|
|
|
Originally posted by: search-1984.gmx.ch
hi
thanks for your answers. so far i didn't manage to get it to work though. i did the following:
i've two plugins. lets call them "client" and "framework". the client-plugin has a dependency to the framework but of course the framework hasn't got one to the client. now i want to load some client properties in the framework. i've added the following in the client manifest:
Eclipse-RegisterBuddy: properties
Export-Package: properties
the property file (usermessages.properties) is located in a package called properties (src/properties)
in my framwork manifest i have added
Eclipse-BuddyPolicy: registered
now when i try to load the property as follows file the resource can't be found.
String resourceBundleNameSmall = "properties/" + aResourceBundleName; // path: properties/usermessages
resourceBundle = ResourceBundle.getBundle(resourceBundleNameSmall);
how and were do i use Bundle.getResource()? i didn't quite get that. what else am i missing out here?
thanks for any help.
regards
|
|
|
|
Re: Eclipse Buddy Concept - Property File [message #461639 is a reply to message #461637] |
Mon, 15 January 2007 08:51 |
Eclipse User |
|
|
|
Originally posted by: search-1984.gmx.ch
i just tried that out but the resource still can't be found. i have exported the package as follows:
Export-Package: properties
and also registered it (hope that is correct, i can register a package, right? or do i have to register each file separately?):
Eclipse-RegisterBuddy: properties
in the other manifest file i added the statement Eclipse-BuddyPolicy: registered
did i maybe forget something? or is there another way i could access that file?
regards
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03719 seconds