java - Images in Eclipse CustomizableIntroPart are not shown -


i'm creating customizableintropart eclipse application. define pages using xhtml works fine. handling images causing trouble. generate content using iintroxhtmlcontentprovider, when generate img-tag , set src attribute images not displayed. images might either in executing or in other plugins contributing xhtml page.

element img = dom.createelement("img"); img.setattribute("src", getapplicationicon(element)); img.setattribute("class", "appicon"); div.appendchild(img); 

i couldn't find documentation on how specify source. tried things like

plugin:my.plugin.id/icons/foo.png 

any appreciated.

in end, it's web browser display xhtml content , has no notion of "contributed plugins" right?

but using code process these contributions, , they're coming either plugin or other plugins?

if that's case, i'd use org.osgi.framework.bundle.getentry(string) url image, , org.eclipse.core.runtime.filelocator.tofileurl(url) convert file:/// url. use url reference icons.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - EclipseLink JPA Object is not a known entity type -

java - Need to add SOAP security token -