Skip to content

Package: MakeItHappenWizardsPlugin

MakeItHappenWizardsPlugin

nameinstructionbranchcomplexitylinemethod
MakeItHappenWizardsPlugin()
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
getPlugin()
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%
getPluginResourceLocator()
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%
static {...}
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2002-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: * IBM - Initial API and implementation
13: * Lucas Koehler- initial API and implementation
14: ******************************************************************************/
15: package org.eclipse.emf.ecp.makeithappen.internal.wizards;
16:
17: import org.eclipse.emf.common.EMFPlugin;
18: import org.eclipse.emf.common.ui.EclipseUIPlugin;
19: import org.eclipse.emf.common.util.ResourceLocator;
20: import org.osgi.framework.BundleContext;
21:
22: /**
23: * The <b>Plugin</b> for the model ecp..makeithappen.internal.wizards library.
24: * EMF must run
25: * within an Eclipse workbench,
26: * within a headless Eclipse workspace,
27: * or just stand-alone as part of some other application.
28: * To support this, all resource access should be directed to the resource locator,
29: * which can redirect the service as appropriate to the runtime.
30: * During stand-alone invocation no plugin initialization takes place.
31: * In this case, common.resources.jar must be on the CLASSPATH.
32: *
33: * @see #INSTANCE
34: */
35: public final class MakeItHappenWizardsPlugin extends EMFPlugin {
36:         /**
37:          * The singleton instance of the plugin.
38:          */
39:         public static final MakeItHappenWizardsPlugin INSTANCE = new MakeItHappenWizardsPlugin();
40:
41:         /**
42:          * The one instance of this class.
43:          */
44:         private static Implementation plugin;
45:
46:         /**
47:          * Creates the singleton instance.
48:          */
49:         private MakeItHappenWizardsPlugin() {
50:                 super(new ResourceLocator[] {});
51:         }
52:
53:         /*
54:          * Javadoc copied from base class.
55:          */
56:         @Override
57:         public ResourceLocator getPluginResourceLocator() {
58:                 return plugin;
59:         }
60:
61:         /**
62:          * Returns the singleton instance of the Eclipse plugin.
63:          *
64:          * @return the singleton instance.
65:          */
66:         public static Implementation getPlugin() {
67:                 return plugin;
68:         }
69:
70:         /**
71:          * The actual implementation of the Eclipse <b>Plugin</b>.
72:          */
73:         public static class Implementation extends EclipseUIPlugin {
74:                 @Override
75:                 public void start(BundleContext context) throws Exception {
76:                         super.start(context);
77:                         plugin = this;
78:                 }
79:
80:                 @Override
81:                 public void stop(BundleContext context) throws Exception {
82:
83:                         super.stop(context);
84:                 }
85:         }
86: }