Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Externalized stings don't work anymore
Externalized stings don't work anymore [message #60676] Wed, 22 September 2004 12:45 Go to next message
Eclipse UserFriend
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 #60677 is a reply to message #60676] Wed, 22 September 2004 14:25 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Sebastian,

> 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?

Thanks for finding this. I've opened a sev 1 bugzilla 74552 for this so
please added yourself to the cc list.

Best regards,

Joe Winchester
Re: Externalized stings don't work anymore [message #60680 is a reply to message #60676] Wed, 22 September 2004 14:39 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #60696 is a reply to message #60695] Wed, 22 September 2004 18:01 Go to previous message
Eclipse UserFriend
Originally posted by: eifert.SPAMweb.de

Rich Kulp schrieb:
> Just for now, change LanguageManager.getString("KEY") to be
> fully-qualified.

Thanks, that seems to work, even for TitledBorders.

Sebastian
Re: Externalized stings don't work anymore [message #598780 is a reply to message #60676] Wed, 22 September 2004 14:25 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
Hi Sebastian,

> 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?

Thanks for finding this. I've opened a sev 1 bugzilla 74552 for this so
please added yourself to the cc list.

Best regards,

Joe Winchester
Re: Externalized stings don't work anymore [message #598804 is a reply to message #60676] Wed, 22 September 2004 14:39 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 #598912 is a reply to message #60695] Wed, 22 September 2004 18:01 Go to previous message
Eclipse UserFriend
Originally posted by: eifert.SPAMweb.de

Rich Kulp schrieb:
> Just for now, change LanguageManager.getString("KEY") to be
> fully-qualified.

Thanks, that seems to work, even for TitledBorders.

Sebastian
Previous Topic:Problem with Visual Editor 1.0 - create new VisualClass
Next Topic:[MAC] - Main reason that VE does not support MAC
Goto Forum:
  


Current Time: Sun Dec 22 01:01:15 GMT 2024

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

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

Back to the top