Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] ImageStore and Icons with same name

Sounds good to me, but I'm not the original developer. What do others think?

On Thu, Jan 21, 2010 at 1:25 AM, ekke <ekke@xxxxxxxxxxxxxxxx> wrote:
> I'm using Riena ImageStore in redView and open-erp-ware
>
> Sometimes its a problem, that the icons / images - names must be unique -
> as far as I understand it, Riena only looks for name of icons into the
> registered ImagePaths.
>
> But if you follow a common naming like
> http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
> this can happen:
>
> /icons/16x16/apps/office-calendar.png
> /icons/32x32/apps/office-calendar.png
>
> at the moment I have to rename / relocate like this:
>
> /icons/office-calendar-16x16.png
> /icons/office-calendar-32x32.png
>
> I would prefer to slightly modify the ImageStore to handle different pathes
> with same names,
> so I opened Bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=300242
>
> the idea is to cache the icons / images into the ImageStore using the
> symbolic name including the path.
>
> per ex.
> registered ImagePath: /icons
> image names used:
> 16x16/apps/office-calendar.png
> 32x32/apps/office-calendar.png
>
> only theĀ  method
> getImageDescriptor(String fullName)
> needs some more lines to detect if a path is part of the name
> (see bugzilla)
>
> so existing code still works, there are only some lines of code changedĀ  if
> an image wasn't found from cache and a new ImageDescriptor is needed
>
> what do you think ?
>
> --
>
> ekke (ekkehard gentz)
> independent software-architect
> senior erp-consultant
> eclipse | osgi | equinox | mdsd | oaw | emf | uml
> max-josefs-platz 30, D-83022 rosenheim, germany
> mailto:ekke@xxxxxxxxxxxxxxxx
> homepage (de): http://gentz-software.de
> blog (en): http://ekkes-corner.org
> twitter: @ekkescorner
> skype: ekkes-corner
> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
>
> _______________________________________________
> riena-dev mailing list
> riena-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/riena-dev
>
>



-- 
Elias Volanakis | Technical Lead | http://eclipsesource.com
elias@xxxxxxxxxxxxxxxxx | +1 503 929 5537 | @evolanakis


Back to the top