Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2009-09-16 14:58:41 +0000
committerDarin Wright2009-09-16 14:58:41 +0000
commit60d29ccf8248970060b0f2c3057a17d6662a0374 (patch)
treeb88d8160593746c9fd9a0122efac4065bd0f611e /org.eclipse.core.externaltools/src/org/eclipse/core
parentb6d837240372ebd89c04fb22c7f585e558a77565 (diff)
downloadeclipse.platform.debug-60d29ccf8248970060b0f2c3057a17d6662a0374.tar.gz
eclipse.platform.debug-60d29ccf8248970060b0f2c3057a17d6662a0374.tar.xz
eclipse.platform.debug-60d29ccf8248970060b0f2c3057a17d6662a0374.zip
*** empty log message ***
Diffstat (limited to 'org.eclipse.core.externaltools/src/org/eclipse/core')
-rw-r--r--org.eclipse.core.externaltools/src/org/eclipse/core/internal/externaltools/ExternalToolsCore.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/org.eclipse.core.externaltools/src/org/eclipse/core/internal/externaltools/ExternalToolsCore.java b/org.eclipse.core.externaltools/src/org/eclipse/core/internal/externaltools/ExternalToolsCore.java
new file mode 100644
index 000000000..c2b1ae5e3
--- /dev/null
+++ b/org.eclipse.core.externaltools/src/org/eclipse/core/internal/externaltools/ExternalToolsCore.java
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.core.internal.externaltools;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * Controls the plug-in life cycle
+ */
+public class ExternalToolsCore extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.core.externaltools"; //$NON-NLS-1$
+
+ // The shared instance
+ private static ExternalToolsCore plugin;
+
+ /**
+ * The constructor
+ */
+ public ExternalToolsCore() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static ExternalToolsCore getDefault() {
+ return plugin;
+ }
+
+}

Back to the top