Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-dev] Question regarding the "plugin://" and bundleentry:// URL format

Dear platform experts,

in https://bugs.eclipse.org/bugs/show_bug.cgi?id=532695 I try to implement a mechanism in JFace’s ImageDescriptors to replace icons based on the currently active theme.
For this I need your help.

Image files are access in JFace’s Image descriptors either:
1) Via location and filename
2) Via URL

For 1):
ImageDescriptor createFromFile(Class<?> location, String filename)
  Exmaple: 
   location: class org.eclipse.jface.fieldassist.FieldDecorationRegistry
   filename: images/contassist_ovr.png

For 2(
ImageDescriptor createFromURL(URL url)
  Example: bundleentry://1128.fwk934223763/eclipse16.png

But I would like to register replacements based the plugin://bundle-symbolic-name/path_to_icon" format.

Is there a way to transform the IamgeDescriptor’s input to the "plugin://bundle-symbolic-name/path_to_icon" format
and vise-versa?

Regards,
Matthias
 
Matthias Becker
Development, PI Tech Core ABAP Server (SE)
SAP SE, Dietmar-Hopp-Allee 16, 69190 Walldorf, Germany

Pflichtangaben/Mandatory Disclosure Statement:
http://www.sap.com/company/legal/impressum.epx/
 
Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.
 
This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation.


Back to the top