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%
start(BundleContext)
M: 22 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
stop(BundleContext)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 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: * Neil Mackenzie - initial implementation
13: * Johannes Faltermeier - moved from ecp.core.rap
14: ******************************************************************************/
15: package org.eclipse.emf.ecp.emfstore.internal.core.rap;
16:
17: import java.util.Dictionary;
18: import java.util.Hashtable;
19:
20: import org.eclipse.core.runtime.Plugin;
21: import org.eclipse.emf.ecp.emfstore.core.internal.ESWorkspaceProviderProvider;
22: import org.osgi.framework.BundleContext;
23: import org.osgi.framework.Constants;
24:
25: /**
26: * Activator.
27: *
28: */
29: public class Activator extends Plugin {
30:
31:         @Override
32:         public final void start(final BundleContext context) throws Exception {
33:
34:                 final Dictionary<String, Object> dictionary = new Hashtable<String, Object>();
35:                 dictionary.put(Constants.SERVICE_RANKING, 1000);
36:                 context.registerService(ESWorkspaceProviderProvider.class,
37:                         new ESWorkspaceProviderProviderFactory(), dictionary);
38:                 super.start(context);
39:         }
40:
41:         @Override
42:         public void stop(final BundleContext context) throws Exception {
43:
44:         }
45:
46: }