Skip to content

Package: Activator

Activator

nameinstructionbranchcomplexitylinemethod
Activator()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
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: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
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-2014 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: * Alexandra Buzila- initial API and implementation
13: ******************************************************************************/
14:
15: package org.eclipse.emf.ecp.view.model.internal.project.installer;
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.view.model.internal.project.installer"; //$NON-NLS-1$
27:
28:         /** The shared instance. */
29:         private static Activator plugin;
30:
31:         /*
32:          * (non-Javadoc)
33:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
34:          */
35:         @Override
36:         public void start(BundleContext context) throws Exception {
37:                 super.start(context);
38:                 plugin = this;
39:         }
40:
41:         /*
42:          * (non-Javadoc)
43:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
44:          */
45:         @Override
46:         public void stop(BundleContext context) throws Exception {
47:                 plugin = null;
48:                 super.stop(context);
49:         }
50:
51:         /**
52:          * Returns the shared instance.
53:          *
54:          * @return the shared instance
55:          */
56:         public static Activator getDefault() {
57:                 return plugin;
58:         }
59:
60: }