Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'restructuration/org.eclipse.emf.compare.examples.export.xslt/src/org/eclipse/emf/compare/examples/export/xslt/XSLTExportPlugin.java')
-rw-r--r--restructuration/org.eclipse.emf.compare.examples.export.xslt/src/org/eclipse/emf/compare/examples/export/xslt/XSLTExportPlugin.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/restructuration/org.eclipse.emf.compare.examples.export.xslt/src/org/eclipse/emf/compare/examples/export/xslt/XSLTExportPlugin.java b/restructuration/org.eclipse.emf.compare.examples.export.xslt/src/org/eclipse/emf/compare/examples/export/xslt/XSLTExportPlugin.java
new file mode 100644
index 000000000..d3736532d
--- /dev/null
+++ b/restructuration/org.eclipse.emf.compare.examples.export.xslt/src/org/eclipse/emf/compare/examples/export/xslt/XSLTExportPlugin.java
@@ -0,0 +1,63 @@
+/*******************************************************************************
+ * Copyright (c) 2006, 2009 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.examples.export.xslt;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class XSLTExportPlugin extends Plugin {
+ /** This plug-in's ID. */
+ public static final String PLUGIN_ID = "org.eclipse.emf.compare.examples.export.xslt"; //$NON-NLS-1$
+
+ /** This plug-in's shared instance. */
+ private static XSLTExportPlugin plugin;
+
+ /**
+ * Default constructor.
+ */
+ public XSLTExportPlugin() {
+ // nothing to initialize
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static XSLTExportPlugin getDefault() {
+ return plugin;
+ }
+}

Back to the top