Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » error with RAP demo from CVS head
error with RAP demo from CVS head [message #76757] Wed, 05 March 2008 11:19 Go to next message
Eclipse UserFriend
Hi all,
I've just updated my workspace with the current head from CVS.
The demo app is not running anymore.
I get the following message:
"Could not evaluate javascript response:
TypeError: org.eclipse.swt.theme.Dimensions has no properties"

I don't know if its only in my workspace or if it is a general problem.

Does somebody have a clue?

Thanks & Regards

Oliver
Re: error with RAP demo from CVS head [message #76773 is a reply to message #76757] Wed, 05 March 2008 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Me again,
I guess that its due to changes in RWT appearances.
Can somebody confirm this? Have there been recently changes in the qx appearances of RAP??
Thanks & Regards

Oliver
Poncho schrieb:
> Hi all,
> I've just updated my workspace with the current head from CVS.
> The demo app is not running anymore.
> I get the following message:
> "Could not evaluate javascript response:
> TypeError: org.eclipse.swt.theme.Dimensions has no properties"
>
> I don't know if its only in my workspace or if it is a general problem.
>
> Does somebody have a clue?
>
> Thanks & Regards
>
> Oliver
Re: error with RAP demo from CVS head [message #76789 is a reply to message #76757] Wed, 05 March 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Oliver,

Poncho wrote:
> I've just updated my workspace with the current head from CVS.
> The demo app is not running anymore.
> I get the following message:
> "Could not evaluate javascript response:
> TypeError: org.eclipse.swt.theme.Dimensions has no properties"
>
> I don't know if its only in my workspace or if it is a general problem.
>
> Does somebody have a clue?

That's right, the class org.eclipse.swt.theme.Dimensions has been replaced
by a more general one called ThemeStore. Do you have a custom widget that
refers to the Dimensions store? If so please change the appearance.js code
to use the new ThemeValues class. Here is an example for a custom
appearance that uses the new classes:

"mycontrol" :
{
style : function( states ) {
var tv = new org.eclipse.swt.theme.ThemeValues( states );
result = { };
result.spacing = tv.getDimension( "mycontrol.spacing" );
result.margin = tv.getBoxDimensions( "mycontrol.margin" );
return result;
}
},

The change was neccesary to introduce custom widget variants (think css
classes) that allow for a more flexible theming. Documentation will follow.
Sorry for the inconvenience.

Best regards,
Ralf
Re: error with RAP demo from CVS head [message #76946 is a reply to message #76789] Thu, 06 March 2008 02:39 Go to previous message
Eclipse UserFriend
Hi Ralf,
yes that was the solution.
I've exchanged all entries of org.eclipse.swt.theme.Dimensions with
your stated example.
Thanks for the support. :-)

Regards

Oliver


Ralf Sternberg schrieb:
> Hi Oliver,
>
> Poncho wrote:
>> I've just updated my workspace with the current head from CVS.
>> The demo app is not running anymore.
>> I get the following message:
>> "Could not evaluate javascript response:
>> TypeError: org.eclipse.swt.theme.Dimensions has no properties"
>>
>> I don't know if its only in my workspace or if it is a general problem.
>>
>> Does somebody have a clue?
>
> That's right, the class org.eclipse.swt.theme.Dimensions has been replaced
> by a more general one called ThemeStore. Do you have a custom widget that
> refers to the Dimensions store? If so please change the appearance.js code
> to use the new ThemeValues class. Here is an example for a custom
> appearance that uses the new classes:
>
> "mycontrol" :
> {
> style : function( states ) {
> var tv = new org.eclipse.swt.theme.ThemeValues( states );
> result = { };
> result.spacing = tv.getDimension( "mycontrol.spacing" );
> result.margin = tv.getBoxDimensions( "mycontrol.margin" );
> return result;
> }
> },
>
> The change was neccesary to introduce custom widget variants (think css
> classes) that allow for a more flexible theming. Documentation will follow.
> Sorry for the inconvenience.
>
> Best regards,
> Ralf
>
Previous Topic:Browser object and getUrl()
Next Topic:org.eclipse.rap.search project
Goto Forum:
  


Current Time: Sun Jun 08 14:17:20 EDT 2025

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

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

Back to the top