Bug 483621: Move segment store statistics into timing analysis plug-ins
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.timing.core.tests / src / org / eclipse / tracecompass / analysis / timing / core / tests / Activator.java
1 /*******************************************************************************
2 * Copyright (c) 2016 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9
10 package org.eclipse.tracecompass.analysis.timing.core.tests;
11
12 import org.eclipse.core.runtime.Plugin;
13 import org.osgi.framework.BundleContext;
14
15 /**
16 * Activator for this plugin
17 *
18 * @author Bernd Hufmann
19 */
20 public class Activator extends Plugin {
21 // ------------------------------------------------------------------------
22 // Attributes
23 // ------------------------------------------------------------------------
24
25 /**
26 * The plug-in ID
27 */
28 public static final String PLUGIN_ID = "org.eclipse.tracecompass.analysis.timing.core.tests"; //$NON-NLS-1$
29
30 /**
31 * The shared instance
32 */
33 private static Activator PLUGIN;
34
35 // ------------------------------------------------------------------------
36 // Constructors
37 // ------------------------------------------------------------------------
38
39 /**
40 * The constructor
41 */
42 public Activator() {
43 }
44
45 // ------------------------------------------------------------------------
46 // Accessors
47 // ------------------------------------------------------------------------
48
49 /**
50 * Returns the shared instance
51 *
52 * @return the shared instance
53 */
54 public static Activator getDefault() {
55 return PLUGIN;
56 }
57
58 // ------------------------------------------------------------------------
59 // Operators
60 // ------------------------------------------------------------------------
61
62 @Override
63 public void start(BundleContext context) throws Exception {
64 super.start(context);
65 PLUGIN = this;
66 }
67
68 @Override
69 public void stop(BundleContext context) throws Exception {
70 PLUGIN = null;
71 super.stop(context);
72 }
73 }
This page took 0.032298 seconds and 5 git commands to generate.