diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:23:09 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:24:09 +0200 |
commit | c7da892cb23d50d4d85746c9a0b6b14bf570989d (patch) | |
tree | e7136073f386d6156f51766c498c52c30c8df85f /plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java | |
download | eclipse-poky-kepler-c7da892cb23d50d4d85746c9a0b6b14bf570989d.tar.gz |
initial commit for Enea Linux 4.0daisy
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java')
-rw-r--r-- | plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java b/plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java new file mode 100644 index 0000000..da66a3e --- /dev/null +++ b/plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/Activator.java | |||
@@ -0,0 +1,62 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2013 Intel Corporation. | ||
3 | * All rights reserved. This program and the accompanying materials | ||
4 | * are made available under the terms of the Eclipse Public License v1.0 | ||
5 | * which accompanies this distribution, and is available at | ||
6 | * http://www.eclipse.org/legal/epl-v10.html | ||
7 | * | ||
8 | * Contributors: | ||
9 | * Intel - initial API and implementation | ||
10 | *******************************************************************************/ | ||
11 | package org.yocto.remote.utils; | ||
12 | |||
13 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
14 | import org.osgi.framework.BundleContext; | ||
15 | |||
16 | /** | ||
17 | * The activator class controls the plug-in life cycle | ||
18 | */ | ||
19 | public class Activator extends AbstractUIPlugin { | ||
20 | |||
21 | // The plug-in ID | ||
22 | public static final String PLUGIN_ID = "org.yocto.remote.utils"; //$NON-NLS-1$ | ||
23 | |||
24 | // The shared instance | ||
25 | private static Activator plugin; | ||
26 | |||
27 | /** | ||
28 | * The constructor | ||
29 | */ | ||
30 | public Activator() { | ||
31 | } | ||
32 | |||
33 | /* | ||
34 | * (non-Javadoc) | ||
35 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) | ||
36 | */ | ||
37 | @Override | ||
38 | public void start(BundleContext context) throws Exception { | ||
39 | super.start(context); | ||
40 | plugin = this; | ||
41 | } | ||
42 | |||
43 | /* | ||
44 | * (non-Javadoc) | ||
45 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) | ||
46 | */ | ||
47 | @Override | ||
48 | public void stop(BundleContext context) throws Exception { | ||
49 | plugin = null; | ||
50 | super.stop(context); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * Returns the shared instance | ||
55 | * | ||
56 | * @return the shared instance | ||
57 | */ | ||
58 | public static Activator getDefault() { | ||
59 | return plugin; | ||
60 | } | ||
61 | |||
62 | } | ||