Platform.getBundle() returns NULL everytime [message #648561] |
Thu, 13 January 2011 14:23 |
Tom Brandenburg Messages: 58 Registered: October 2010 Location: Abstatt, Germany |
Member |
|
|
Hello all,
currently I want to access resources stored in one of my plugins. At first I wondered how this should work and then I found the solution with Platform.getBundle().
So I have a static main method in a workspace plugin project and the same should access the resources. But when I want to get my plugin/bundle with the method above NULL is returned. NULL is also returned for definetely installed plugins like "com.ibm.icu" etc., on which the workspace project is also dependent.
Code:
public class CMain {
public static void main(String[] args) {
Bundle bundleTest = Platform.getBundle("com.ibm.icu"); // or all other bundles
System.out.println(bundleTest.toString());
}
}
What am I doing wrong? Or is this even the right way to do so?
Thanks in advance and best regards
Tom
[Updated on: Thu, 13 January 2011 14:25] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03599 seconds