Can't select string resources from a jar file.

View: New views
3 Messages — Rating Filter:   Alert me  

Can't select string resources from a jar file.

by jasg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When setting the text property of a label, It is not possible to select a resource bundle which is located in a jar file. Even if that jar file is included in the project library group.

I'm fairly sure this used to work in 5.5, but not in 6.0 or 6.1

Anyone else have this problem?

Thanks
J

Re: Can't select string resources from a jar file.

by Aldo Brucale :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jasg wrote:

> When setting the text property of a label, It is not possible to select a
> resource bundle which is located in a jar file. Even if that jar file is
> included in the project library group.
>
> I'm fairly sure this used to work in 5.5, but not in 6.0 or 6.1
>
> Anyone else have this problem?
>
> Thanks
> J

I think this is related to my issue #132788
<http://www.netbeans.org/issues/show_bug.cgi?id=132788> - it is not very
clear where the resource bundles should be. It is currently possible to
choose them from the runtime classpath of the application (except for
jar files, as you point out) but they are not handled correctly unless
they are in the project source tree.
Another related question: which classpath does Matisse actually see when
the user is editing files? It should be the same used for choosing
properties files and icons: the runtime classpath seems to me more
logical and flexible than the source tree.

Re: Can't select string resources from a jar file.

by jasg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Aldo Brucale wrote:
I think this is related to my issue #132788
<http://www.netbeans.org/issues/show_bug.cgi?id=132788> - it is not very
clear where the resource bundles should be. It is currently possible to
choose them from the runtime classpath of the application (except for
jar files, as you point out) but they are not handled correctly unless
they are in the project source tree.
Another related question: which classpath does Matisse actually see when
the user is editing files? It should be the same used for choosing
properties files and icons: the runtime classpath seems to me more
logical and flexible than the source tree.
Yes, that looks like the same issue. The more I think about it, the more I'm sure it used to work in 5.5 and earlier. I've added a comment and screenshot to the above issue to show exactly what I mean.

Browsing for text resources just doesn't include anything under Libraries. Browsing for icons seems to allow this no problem. It is clearly a bug.