-
Jun 15th, 2007, 09:14 AM
#1
specify a image inside a jar file in images.properties?
Hi,
is it possible to specify an image which ist inside a jar file in the
images.properties?
I want to load an image from the tango-project icon theme.
Regards,
Torsten
-
Jun 18th, 2007, 03:14 AM
#2
I don't think it's possible to specify a file, but you could add the icons to a resources-project or -package and then they will all be accessible through the classpath.
-
Jun 18th, 2007, 04:28 AM
#3
Actually it is easier than i thougt:
As default "images" is as resourceBasePath of the imageResourcesFactory
set. So just put a "../" in front of my image path inside the images.properties
does the trick.
I could also change the resourceBasePath but I'm not sure if
the default images would still work.
-
Jun 20th, 2007, 12:26 PM
#4
I have a running issue for this problem in JIRA, but no time to work on it. If anyone provides a patch, following the spec of the issue, I 'll take the time to overlook it and patch it.
The issue would allow to "skin" the default icons in spring-rich and a direct use case is indeed the tango project
-
Jun 20th, 2007, 04:22 PM
#5
Hi ge0ffrey,
thank's for your help!
But perhaps it isn't necessary to change anything because if you
use "../" as prefix to the images it is possible to access the images within
the tango-icon.jar as they are in the classpath.
The only problem ist the specified searchpath "images" which I think cannot
be changed because then the spring-rcp images wont be find any more.
But actually it would be nice to specify jar files containing images additionally
to the images folder.
Regards,
Torsten
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules