mat icon indicating copy to clipboard operation
mat copied to clipboard

Allow alternate text for icons from extensions

Open eclipsewebmaster opened this issue 9 months ago • 0 comments

| --- | --- | | Bugzilla Link | 397430 | | Status | NEW | | Importance | P3 enhancement | | Reported | Jan 04, 2013 05:42 EDT | | Modified | Feb 01, 2023 06:50 EDT | | Version | 1.3 | | Blocks | 269608 | | Reporter | Andrew Johnson |

Description

Task 341685 added screen reading of some icons.
It would be nice to add some more for any user extensions of MAT.
We could also add alternate text to HTML images, and allow locale dependent images.

FileLocator.find() can be used to find resources with locale variants selected by $nl$ etc. in the path.

User supplied images:

Queries:
@Icon("path/to/image.gif")

IIconProvider
URL getIcon(Object row)

ContextProvider
URL getIcon()

DetailResultProvider
URL getIcon()

Adding $nl$ to Icon won't be compatible with old levels of MAT < 1.3
@Icon("$nl$/path/to/image.gif")
We could add an annotation property which will only be read by MAT >= 1.3, and use the annotation otherwise.
myquery.icon = $nl$/path/to/image.gif

eclipsewebmaster avatar May 08 '24 18:05 eclipsewebmaster