java - Eclipse Plugin: Directly call method in another plugin? -
i've been tasked create plugin simulates clicking on button within eclipse gui, command line; such as:
eclipsec -consolelog -console -nosplash -application org.doo.headless.headless
i able plugin working hello world, , using eclipse methods etc print system.out.println
. difficulty arises in calling methods in 3rd party plugins.
in eclipse pde project, i've added 3rd party plugin "dependencies", , imported it; references 3rd party plugin's function generateall
ok, , project can exported without problem
running plugin command line returns
java.lang.noclassdeffounderror swdb2c/ui/common/generateall
which class definition of method want call.
is there better way invoke function of plugin? possible without exporting 3rd party plugin? ideally deploy plugin right alongside 3rd party plugin trying automate.
edit: manifest files
3rd party proj: (some stuff removed)
manifest-version: 1.0 bundle-manifestversion: 2 bundle-name: swdb2c module ide plug-in bundle-symbolicname: a.b.c.swdb2c.ui;singleton:=true bundle-version: 2.4.0.201402041054
new plugin:
manifest-version: 1.0 bundle-manifestversion: 2 bundle-name: headless bundle-symbolicname: org.foo.headless;singleton:=true bundle-version: 1.0.0.qualifier bundle-activator: org.foo.headless.activator bundle-activationpolicy: lazy bundle-requiredexecutionenvironment: javase-1.6 import-package: org.eclipse.core.runtime;version="3.4.0", org.eclipse.emf.common.util, org.eclipse.equinox.app;version="1.1.0", org.osgi.framework;version="1.6.0" require-bundle: a.b.c.swdb2c.ui;bundle-version="2.4.0"
in application1
import swdb2c.ui.common.*;
import it.
Comments
Post a Comment