package org.pathvisio.gexplugin;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.pathvisio.desktop.plugin.Plugin;

public class Activator implements BundleActivator {

	@Override
	public void start(BundleContext context) throws Exception {
		System.out.println("ACTIVATOR GexPlugin PLUGIN");

//		ServiceReference refPvDesktop = context.getServiceReference(PvDesktop.class.getName());
//		PvDesktop pvDesktop = (PvDesktop) context.getService(refPvDesktop);
		GexPlugin plugin = new GexPlugin();
		context.registerService(Plugin.class.getName(), plugin, null);
		
		
//		plugin.init(pvDesktop);
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		// TODO Auto-generated method stub

	}

}

@@ -285,224 +285,8 @@
 n %7B%0A
-%09%09System.out.println(%22ACTIVATOR GexPlugin PLUGIN%22);%0A%0A//%09%09ServiceReference refPvDesktop = context.getServiceReference(PvDesktop.class.getName());%0A//%09%09PvDesktop pvDesktop = (PvDesktop) context.getService(refPvDesktop);
 %0A%09%09G
@@ -389,41 +389,8 @@
 l);%0A
-%09%09%0A%09%09%0A//%09%09plugin.init(pvDesktop);
 %0A%09%7D%0A

update gex activator