Custom widget resource loading [message #550298] |
Thu, 29 July 2010 19:51  |
Eclipse User |
|
|
|
Hi
I have a problem with loading the Javascript resources for custom widgets.
I have the situation where I have the excanvas resource bundle. And I have a
custom widget that uses excanvas. The problem is that at runtime the order
of the bundles is undefined so the custom widget JS may be loaded before
excanvas JS and an error occurs. I know that I can set the order in the run
configuration, but this is not a good solution. I'd like the definition of
RAP resources to have a dependency list so I can specify that my resource
needs the excanvas resource and the JS loader can then order them
accordingly.
I can come up with a patch for this if it would be a good solution for the
problem.
Cheers,
Paul
|
|
|
Re: Custom widget resource loading [message #550347 is a reply to message #550298] |
Fri, 30 July 2010 01:23   |
Eclipse User |
|
|
|
Paul Kendall wrote:
> Hi
> I have a problem with loading the Javascript resources for custom widgets.
>
> I have the situation where I have the excanvas resource bundle. And I have
> a custom widget that uses excanvas. The problem is that at runtime the
> order of the bundles is undefined so the custom widget JS may be loaded
> before excanvas JS and an error occurs. I know that I can set the order in
> the run configuration, but this is not a good solution. I'd like the
> definition of RAP resources to have a dependency list so I can specify
> that my resource needs the excanvas resource and the JS loader can then
> order them accordingly.
>
> I can come up with a patch for this if it would be a good solution for the
> problem.
>
> Cheers,
> Paul
Heres a patch that solves the problem :-)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321282
Cheers,
Paul
|
|
|
|
Powered by
FUDForum. Page generated in 0.03506 seconds