diff options
Diffstat (limited to 'plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java')
-rw-r--r-- | plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java index af00e7c60..fbbfb4a11 100644 --- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java +++ b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java @@ -17,6 +17,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Status; +import org.eclipse.tm.tcf.internal.extensions.TcfServiceProvidersExtensionPointManager; import org.eclipse.tm.tcf.core.ChannelTCP; import org.eclipse.tm.tcf.protocol.ILogger; import org.eclipse.tm.tcf.protocol.Protocol; @@ -48,19 +49,26 @@ public class Activator extends Plugin { } }; + /** + * Constructor. + */ public Activator() { plugin = this; } + /** * Returns the shared instance * * @return the shared instance */ public static Activator getDefault() { - return plugin; + return plugin; } + /* (non-Javadoc) + * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext) + */ @Override public void start(BundleContext context) throws Exception { super.start(context); @@ -88,6 +96,9 @@ public class Activator extends Plugin { context.addBundleListener(bundle_listener); } + /* (non-Javadoc) + * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) + */ @Override public void stop(BundleContext context) throws Exception { context.removeBundleListener(bundle_listener); @@ -122,5 +133,8 @@ public class Activator extends Plugin { catch (Exception x) { Protocol.log("TCF startup error", x); //$NON-NLS-1$ } + + // Register service providers contributed via Eclipse extension point + TcfServiceProvidersExtensionPointManager.getInstance().registerServiceProviders(); } } |