SmartTools runs over Eclipse, but also on OSGi only. As it is possible to run OSGi on a mobile, you can run SmartTools on a mobile.
In Eclipse, SmartTools is initialized automatically with a World, which you need to override when you develop your application. You need to have a bundle that will initialize the World in the CM, and start the CM.
public class Activator implements BundleActivator { public void start(BundleContext context) throws Exception { inria.smarttools.componentsmanager.World.getInstance().setWorldFile( "resources:inria/smarttools/starter/cmp2/cmp2.world"); inria.smarttools.componentsmanager.World.getInstance().loadWorld(); final Bundle[] bundles = context.getBundles(); for (int i = 0; i < bundles.length; i++) { if (bundles[i].getSymbolicName().equals("componentsManager")) bundles[i].start(); } } public void stop(BundleContext context) throws Exception {} }
Last modified: $Date: 2008-09-08 13:58:22 +0200 (Mon, 08 Sep 2008) $