Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Fwd: Tues 24th: Shared Images

Sorry that this didn't happen last week, so we should discuss Shared
Images at this week's Platform UI call.


Bug 246224 [Contributions] Accessing SharedImages in plugin.xml (for
ex. org.eclipse.ui.menus)

I'd like to discuss this during next week's UI call.  There are a
couple of options here ranging from the bare minimum to the esoteric

Bare Minimum.  With the fix for we simply publish
an interface with string constants that look like
 Anybody that wants to can copy these into their icon="" attributes.
No tooling support.

We code org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(String,
String) to also check in the shared images cache so values like
IMG_DEF_VIEW can be copied into the icon="" attributes.  No tooling

More complex:

We enhance PDE identifier schema support so that 1) you can specify 2
types for one attribute and 2) you can use XPath to narrow your
identifiers.   Then icon="" can be either a resource or identifier,
and identifiers can be selected from a certain type of extension point
that would allow anybody to publish their own shared images and be
picked up by the tool.  This is hard to generalize the PDE support and
still get our specific behaviour.

We write a custom attribute (that can hopefully be re-used by anybody)
that we would use in our icon="" attributes.  That would allow us to
show the user whatever values we want (contributed by extension,
grabbed from runtime maps, whatever).  This is probably the most
successful of the complex options, but we would need to specify the
desired behaviour and limit the scope.


Paul Webster
Hi floor.  Make me a sammich! - GIR

Back to the top