Loading plugin from a JAR file -


i'm having requirement put plugin (with ui) in jar. plugin ui (via eclipse menu) need show ui of plugin in jar. possible? mean dynamically loading plugin programmatically.

yes possible.

something this:

bundlecontext bundlecontext = platform.getbundle("your-plugin-id").getbundlecontext(); fileinputstream = new fileinputstream(file); string name = "initial@" + file.touri().tourl().tostring(); bundle b = bundlecontext.installbundle(name, is); b.start(); 

but dont think want do. create dependency between eclipse plugin jar file. when user clicks menu , action triggered, start ui jar file do.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -