Skip to content

Package: Activator

Activator

nameinstructionbranchcomplexitylinemethod
Activator()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getInstance()
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-2016 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: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.internal.view.table.ui.swt.persistedstate;
15:
16: import org.eclipse.core.runtime.Plugin;
17: import org.osgi.framework.BundleContext;
18:
19: /**
20: * The activator of the plugin.
21: *
22: * @author Johannes Faltermeier
23: *
24: */
25: public class Activator extends Plugin {
26:
27:         /**
28:          * The PlugIn ID.
29:          */
30:         public static final String PLUGIN_ID = "org.eclipse.emf.ecp.view.table.ui.swt.persistedstate"; //$NON-NLS-1$
31:
32:         private static Activator instance;
33:
34:         // BEGIN SUPRESS CATCH EXCEPTION
35:         @Override
36:         public void start(BundleContext bundleContext) throws Exception {
37:                 super.start(bundleContext);
38:                 instance = this;
39:         }
40:
41:         @Override
42:         public void stop(BundleContext bundleContext) throws Exception {
43:                 instance = null;
44:                 super.stop(bundleContext);
45:         }
46:         // END SUPRESS CATCH EXCEPTION
47:
48:         /**
49:          * Returns the shared instance.
50:          *
51:          * @return the shared instance
52:          */
53:         public static Activator getInstance() {
54:                 return instance;
55:         }
56:
57: }