~ubuntu-branches/ubuntu/vivid/eclipse-linuxtools/vivid-proposed

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/TmfCoreTestPlugin.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam, Jakub Adam, tony mancill
  • Date: 2014-10-11 11:44:05 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20141011114405-yazjvxfzzhmi5sgj
Tags: 3.1.0-1
[ Jakub Adam ]
* New upstream release (Closes: #761524).
* Refreshed d/patches.
* Don't build removed feature org.eclipse.linuxtools.tools.launch
  - merged into org.eclipse.linuxtools.profiling.
* Use javac target 1.7.
* Build new feature org.eclipse.linuxtools.dataviewers.feature
  - required by Valgrind integration.
* Build-depend on eclipse-remote-services-api and eclipse-cdt-autotools.
* Bump Standards-Version to 3.9.6.
* Override incompatible-java-bytecode-format - linuxtools needs Java 7.
* Remove unused codeless-jar override.

[ tony mancill ]
* Tweak short package description to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    // Attributes
28
28
    // ------------------------------------------------------------------------
29
29
 
30
 
        // The plug-in ID
31
 
        @SuppressWarnings("javadoc")
 
30
    // The plug-in ID
 
31
    @SuppressWarnings("javadoc")
32
32
    public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.tests";
33
33
 
34
 
        // The shared instance
35
 
        private static TmfCoreTestPlugin fPlugin;
 
34
    // The shared instance
 
35
    private static TmfCoreTestPlugin fPlugin;
36
36
 
37
37
    // ------------------------------------------------------------------------
38
38
    // Constructors
39
39
    // ------------------------------------------------------------------------
40
40
 
41
 
        /**
42
 
         * The constructor
43
 
         */
44
 
        public TmfCoreTestPlugin() {
45
 
                setDefault(this);
46
 
        }
 
41
    /**
 
42
     * The constructor
 
43
     */
 
44
    public TmfCoreTestPlugin() {
 
45
        setDefault(this);
 
46
    }
47
47
 
48
 
        // ------------------------------------------------------------------------
 
48
    // ------------------------------------------------------------------------
49
49
    // Accessors
50
 
        // ------------------------------------------------------------------------
 
50
    // ------------------------------------------------------------------------
51
51
 
52
52
    /**
53
53
     * @return the shared instance
56
56
        return fPlugin;
57
57
    }
58
58
 
59
 
        /**
60
 
         * @param plugin the shared instance
61
 
         */
62
 
        private static void setDefault(TmfCoreTestPlugin plugin) {
63
 
                fPlugin = plugin;
64
 
        }
 
59
    /**
 
60
     * @param plugin the shared instance
 
61
     */
 
62
    private static void setDefault(TmfCoreTestPlugin plugin) {
 
63
        fPlugin = plugin;
 
64
    }
65
65
 
66
 
        // ------------------------------------------------------------------------
 
66
    // ------------------------------------------------------------------------
67
67
    // Operations
68
 
        // ------------------------------------------------------------------------
69
 
 
70
 
        @Override
71
 
        public void start(BundleContext context) throws Exception {
72
 
                super.start(context);
73
 
                setDefault(this);
74
 
                TmfCoreTracer.init();
75
 
        }
76
 
 
77
 
        @Override
78
 
        public void stop(BundleContext context) throws Exception {
79
 
                TmfCoreTracer.stop();
80
 
                setDefault(null);
81
 
                super.stop(context);
82
 
        }
 
68
    // ------------------------------------------------------------------------
 
69
 
 
70
    @Override
 
71
    public void start(BundleContext context) throws Exception {
 
72
        super.start(context);
 
73
        setDefault(this);
 
74
        TmfCoreTracer.init();
 
75
    }
 
76
 
 
77
    @Override
 
78
    public void stop(BundleContext context) throws Exception {
 
79
        TmfCoreTracer.stop();
 
80
        setDefault(null);
 
81
        super.stop(context);
 
82
    }
83
83
 
84
84
}