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
Post a Comment