Externalized stings don't work anymore [message #60676] |
Wed, 22 September 2004 12:45 |
Eclipse User |
|
|
|
Originally posted by: eifert.SPAMweb.de
Hi,
since the release of the final version of VE, externalized strings in a
visual class aren't properly evaluated. Instead, the component gets
marked with an 'i' and the tooltip shows a
java.lang.InstantiationException(... to complicated to be evaluated). In
VE1.0M2 externalized string were ok (except for TitledBorders).
Is anyone else experiencing this?
Sebastian
|
|
|
|
Re: Externalized stings don't work anymore [message #60680 is a reply to message #60676] |
Wed, 22 September 2004 14:39 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Just so we know, what is the externalized string code in the file look
like? Need to see the format to see if we should be able to evaluate it
correctly. There are some we can't, even though it worked in M2.
Something probably has regressed, but the format you are using will help
us find it out.
--
Thanks, Rich Kulp
|
|
|
Re: Externalized stings don't work anymore [message #60694 is a reply to message #60680] |
Wed, 22 September 2004 17:08 |
Eclipse User |
|
|
|
Originally posted by: eifert.SPAMweb.de
Rich Kulp schrieb:
> Just so we know, what is the externalized string code in the file look
> like? Need to see the format to see if we should be able to evaluate it
> correctly. There are some we can't, even though it worked in M2.
> Something probably has regressed, but the format you are using will help
> us find it out.
The call is LanguageManager.getString("KEY"), where getString() is a
static method and LanguageManager has a static initializer block. But
even if you simplify getString() by returning a constant string, VE
still can't evaluate it.
In M2 it worked for things like
jLabel.setText(LanguageManager.setString("foo"));
but failed for
jPanel.setBorder(javax.swing.BorderFactory.createTitledBorde r(
null,LanguageManager.getString("Viz2DConfigPanel.31"),...));
In 1.0 final, it fails for both.
Sebastian
|
|
|
Re: Externalized stings don't work anymore [message #60695 is a reply to message #60694] |
Wed, 22 September 2004 17:22 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Just for now, change LanguageManager.getString("KEY") to be
fully-qualified. It probably can't find LanguageManager because that
section of the parser doesn't know about import stmts. That is something
that we need to address, we have a priority defect open to try find all
of the places that are like this.
--
Thanks, Rich Kulp
|
|
|
|
|
Re: Externalized stings don't work anymore [message #598804 is a reply to message #60676] |
Wed, 22 September 2004 14:39 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Just so we know, what is the externalized string code in the file look
like? Need to see the format to see if we should be able to evaluate it
correctly. There are some we can't, even though it worked in M2.
Something probably has regressed, but the format you are using will help
us find it out.
--
Thanks, Rich Kulp
|
|
|
Re: Externalized stings don't work anymore [message #598898 is a reply to message #60680] |
Wed, 22 September 2004 17:08 |
Eclipse User |
|
|
|
Originally posted by: eifert.SPAMweb.de
Rich Kulp schrieb:
> Just so we know, what is the externalized string code in the file look
> like? Need to see the format to see if we should be able to evaluate it
> correctly. There are some we can't, even though it worked in M2.
> Something probably has regressed, but the format you are using will help
> us find it out.
The call is LanguageManager.getString("KEY"), where getString() is a
static method and LanguageManager has a static initializer block. But
even if you simplify getString() by returning a constant string, VE
still can't evaluate it.
In M2 it worked for things like
jLabel.setText(LanguageManager.setString("foo"));
but failed for
jPanel.setBorder(javax.swing.BorderFactory.createTitledBorde r(
null,LanguageManager.getString("Viz2DConfigPanel.31"),...));
In 1.0 final, it fails for both.
Sebastian
|
|
|
Re: Externalized stings don't work anymore [message #598906 is a reply to message #60694] |
Wed, 22 September 2004 17:22 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
Just for now, change LanguageManager.getString("KEY") to be
fully-qualified. It probably can't find LanguageManager because that
section of the parser doesn't know about import stmts. That is something
that we need to address, we have a priority defect open to try find all
of the places that are like this.
--
Thanks, Rich Kulp
|
|
|
|
Powered by
FUDForum. Page generated in 0.07408 seconds