package org.pathvisio.visualization;

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

public class Activator implements BundleActivator {

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

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

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

	}

}

@@ -353,231 +353,8 @@
 n %7B%0A
-%09%09System.out.println(%22ACTIVATOR VISUALIZATION PLUGIN%22);%0A%0A//%09%09ServiceReference refPvDesktop = context.getServiceReference(PvDesktop.class.getName());%0A//%09%09PvDesktop pvDesktop = (PvDesktop) context.getService(refPvDesktop);%0A%09%09
 %0A%09%09V
@@ -477,35 +477,8 @@
 l);%0A
-//%09%09plugin.init(pvDesktop);
 %0A%09%7D%0A

update visualization activator