Results 1 to 5 of 5

Thread: specify a image inside a jar file in images.properties?

  1. #1
    Join Date
    Mar 2007
    Location
    Germany, Tuebingen
    Posts
    49

    Default 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

  2. #2

    Default

    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.

  3. #3
    Join Date
    Mar 2007
    Location
    Germany, Tuebingen
    Posts
    49

    Default

    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.

  4. #4
    Join Date
    May 2005
    Posts
    394

    Default

    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

  5. #5
    Join Date
    Mar 2007
    Location
    Germany, Tuebingen
    Posts
    49

    Default

    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
  •