Package: AcceleoExamplesPlugin

AcceleoExamplesPlugin

nameinstructionbranchcomplexitylinemethod
AcceleoExamplesPlugin()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
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: 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) 2008, 2012 Obeo.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Obeo - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.acceleo.examples.internal;
12:
13: import org.eclipse.ui.plugin.AbstractUIPlugin;
14: import org.osgi.framework.BundleContext;
15:
16: /**
17: * The activator class controls the plug-in life cycle.
18: *
19: * @author <a href="mailto:laurent.goubet@obeo.fr">Laurent Goubet</a>
20: */
21: public class AcceleoExamplesPlugin extends AbstractUIPlugin {
22:         /** The plug-in ID. */
23:         public static final String PLUGIN_ID = "org.eclipse.acceleo.examples"; //$NON-NLS-1$
24:
25:         /** The plug-in's shared instance. */
26:         private static AcceleoExamplesPlugin plugin;
27:
28:         /**
29:          * The constructor.
30:          */
31:         public AcceleoExamplesPlugin() {
32:                 // Nothing to do here
33:         }
34:
35:         /**
36:          * Returns the shared instance.
37:          *
38:          * @return the shared instance.
39:          */
40:         public static AcceleoExamplesPlugin getDefault() {
41:                 return plugin;
42:         }
43:
44:         /**
45:          * {@inheritDoc}
46:          *
47:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
48:          */
49:         @Override
50:         public void start(BundleContext context) throws Exception {
51:                 super.start(context);
52:                 plugin = this;
53:         }
54:
55:         /**
56:          * {@inheritDoc}
57:          *
58:          * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
59:          */
60:         @Override
61:         public void stop(BundleContext context) throws Exception {
62:                 plugin = null;
63:                 super.stop(context);
64:         }
65: }