package org.eclipse.dltk.ruby.abstractdebugger; import java.io.IOException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Plugin; import org.eclipse.dltk.core.environment.IDeployment; import org.osgi.framework.BundleContext; /** * The activator class controls the plug-in life cycle */ public class AbstractRubyDebuggerPlugin extends Plugin { // The plug-in ID public static final String PLUGIN_ID = "org.eclipse.dltk.ruby.abstractdebugger"; //$NON-NLS-1$ // The shared instance private static AbstractRubyDebuggerPlugin plugin; /** * The constructor */ public AbstractRubyDebuggerPlugin() { } @Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; } @Override public void stop(BundleContext context) throws Exception { plugin = null; super.stop(context); } /** * Returns the shared instance * * @return the shared instance */ public static AbstractRubyDebuggerPlugin getDefault() { return plugin; } private static final String DEBUGGER_DIR = "/debugger"; //$NON-NLS-1$ public IPath deployDebuggerSource(IDeployment deployment) throws IOException { return deployment.add(getBundle(), DEBUGGER_DIR); } }