FontRegistry doesn't use ClassLoader (Eclipse 3.1) [message #291513] |
Sat, 17 September 2005 14:38  |
Eclipse User |
|
|
|
Originally posted by: bbieth.free.fr
Hello,
I try to use FontRegistry in my RCP app, but I get a
MissingResourceException when I create it.
I saw the following lines in the FontRegistry source code :
/**
* Load the FontRegistry using the ClassLoader from the PlatformUI
* plug-in
*/
public FontRegistry(String location) throws MissingResourceException {
// FIXE:
// this(location,
WorkbenchPlugin.getDefault().getDescriptor().getPluginClassL oader());
this(location, null);
}
and the other constructor :
public FontRegistry(String location, ClassLoader loader)
throws MissingResourceException {
Display display = Display.getCurrent();
Assert.isNotNull(display);
// FIXE: need to respect loader
//readResourceBundle(location, loader);
readResourceBundle(location);
hookDisplayDispose(display);
}
Why are the FIXE lines commented ? Is there a "FIXED" version of this file ?
Bruno
|
|
|
|
Re: FontRegistry doesn't use ClassLoader (Eclipse 3.1) [message #291852 is a reply to message #291700] |
Sun, 25 September 2005 14:40  |
Eclipse User |
|
|
|
Originally posted by: bbieth.free.fr
Ok, thanks and sorry for the other post ...
Tod Creasey a écrit :
> I have logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=110239 for this
> issue.
>
> Tod Creasey
> Eclipse UI Committer
>
> "Bruno" <bbieth@free.fr> wrote in message
> news:dghnov$u6t$1@news.eclipse.org...
>
>>Hello,
>>
>>I try to use FontRegistry in my RCP app, but I get a
>>MissingResourceException when I create it.
>>I saw the following lines in the FontRegistry source code :
>>
>> /**
>> * Load the FontRegistry using the ClassLoader from the PlatformUI
>> * plug-in
>> */
>> public FontRegistry(String location) throws MissingResourceException {
>> // FIXE:
>> // this(location,
>> WorkbenchPlugin.getDefault().getDescriptor().getPluginClassL oader());
>> this(location, null);
>> }
>>
>>and the other constructor :
>>
>> public FontRegistry(String location, ClassLoader loader)
>> throws MissingResourceException {
>> Display display = Display.getCurrent();
>> Assert.isNotNull(display);
>> // FIXE: need to respect loader
>> //readResourceBundle(location, loader);
>> readResourceBundle(location);
>>
>> hookDisplayDispose(display);
>> }
>>
>>Why are the FIXE lines commented ? Is there a "FIXED" version of this file
>
> ?
>
>>Bruno
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 2.32703 seconds