Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » FontRegistry doesn't use ClassLoader (Eclipse 3.1)
FontRegistry doesn't use ClassLoader (Eclipse 3.1) [message #291513] Sat, 17 September 2005 18:38 Go to next message
Eclipse UserFriend
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 #291700 is a reply to message #291513] Wed, 21 September 2005 19:30 Go to previous messageGo to next message
Tod Creasey is currently offline Tod CreaseyFriend
Messages: 59
Registered: July 2009
Member
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
Re: FontRegistry doesn't use ClassLoader (Eclipse 3.1) [message #291852 is a reply to message #291700] Sun, 25 September 2005 18:40 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:Beginners Help with Plugin Paths
Next Topic:How to add exernal ant task within eclipse3.1.
Goto Forum:
  


Current Time: Wed Jul 17 03:17:06 GMT 2024

Powered by FUDForum. Page generated in 0.02975 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top