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%
getContext()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
start(BundleContext)
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
stop(BundleContext)
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: package org.eclipse.emf.ecp.integrationtest;
2:
3: import org.osgi.framework.BundleActivator;
4: import org.osgi.framework.BundleContext;
5:
6: public class Activator implements BundleActivator {
7:
8:         private static BundleContext context;
9:
10:         static BundleContext getContext() {
11:                 return context;
12:         }
13:
14:         /*
15:          * (non-Javadoc)
16:          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
17:          */
18:         @Override
19:         public void start(BundleContext bundleContext) throws Exception {
20:                 Activator.context = bundleContext;
21:         }
22:
23:         /*
24:          * (non-Javadoc)
25:          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
26:          */
27:         @Override
28:         public void stop(BundleContext bundleContext) throws Exception {
29:                 Activator.context = null;
30:         }
31:
32: }