]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/Activator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.editors.win32 / src / org / simantics / editors / win32 / Activator.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.editors.win32;
13
14 import org.eclipse.ui.plugin.AbstractUIPlugin;
15 import org.osgi.framework.BundleContext;
16
17
18 public class Activator extends AbstractUIPlugin {
19         // The plug-in ID
20         public static final String PLUGIN_ID = "org.simantics.editors.win32";
21
22         // The shared instance
23         private static Activator plugin;
24         
25         /**
26          * The constructor
27          */
28         public Activator() {
29         }
30
31         /*
32          * (non-Javadoc)
33          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
34          */
35         public void start(BundleContext context) throws Exception {
36                 super.start(context);
37                 plugin = this;
38         }
39
40         /*
41          * (non-Javadoc)
42          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
43          */
44         public void stop(BundleContext context) throws Exception {
45                 plugin = null;
46                 super.stop(context);
47         }
48
49         /**
50          * Returns the shared instance
51          *
52          * @return the shared instance
53          */
54         public static Activator getDefault() {
55                 return plugin;
56         }
57 }