Skip to content

Package: Activator

Activator

nameinstructionbranchcomplexitylinemethod
Activator()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getDefault()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
start(BundleContext)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
stop(BundleContext)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.core.test;
16:
17: import org.eclipse.ui.plugin.AbstractUIPlugin;
18: import org.osgi.framework.BundleContext;
19:
20: /**
21: * The activator class controls the plug-in life cycle
22: */
23: public class Activator extends AbstractUIPlugin {
24:
25:         // The plug-in ID
26:         public static final String PLUGIN_ID = "org.eclipse.emf.ecp.core.test"; //$NON-NLS-1$
27:
28:         // The shared instance
29:         private static Activator plugin;
30:
31:         /**
32:          * The constructor
33:          */
34:         public Activator() {
35:         }
36:
37:         /*
38:          * (non-Javadoc)
39:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
40:          */
41:         @Override
42:         public void start(BundleContext context) throws Exception {
43:                 super.start(context);
44:                 plugin = this;
45:         }
46:
47:         /*
48:          * (non-Javadoc)
49:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
50:          */
51:         @Override
52:         public void stop(BundleContext context) throws Exception {
53:                 plugin = null;
54:                 super.stop(context);
55:         }
56:
57:         /**
58:          * Returns the shared instance
59:          *
60:          * @return the shared instance
61:          */
62:         public static Activator getDefault() {
63:                 return plugin;
64:         }
65:
66: }