Clicky

I want to load an image which is in some plugin.

and I'm in the RCP .

asked 05/17/2011 09:59

gamjaradio's gravatar image

gamjaradio ♦♦


3 Answers:

You may have to get all the bundles and iterate over them

list all the bundles:
 
http://www.osgi.org/javadoc/r4v41/org/osgi/framework/BundleContext.html#getBundles()

get file from bundle
  File x = new
File(FileLocator.toFileURL(bundle.getEntry(entryName)).toURI());

link

answered

Ajay-Singh's gravatar image

Ajay-Singh

It's so good.

and one more question ,

Even though I'm using swt_awt bridge , Is it possible to load a ImageFile that is in the plugin project ??

In other word , I'using JPane on RCP viewer. and want to draw an image on the Panel .
Of course , the image to be painted is in the plugIn.

plsease give m e advice.
link

answered 2011-05-17 at 19:58:31

gamjaradio's gravatar image

gamjaradio

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

link

answered 2011-05-17 at 20:12:00

mwvisa1's gravatar image

mwvisa1

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: 05/17/2011 09:59

Seen: 305 times

Last updated: 06/25/2011 09:18

Categories