Contribute CNF based TMF project handling
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / TmfUiPlugin.java
index ab502899a1eccbd6d9c82bf1d4daecfa905bd53f..711b61e783bcd5ab85db4f52696e7f957ebef4ba 100644 (file)
@@ -14,9 +14,8 @@ package org.eclipse.linuxtools.tmf.ui;
 
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.resource.ImageRegistry;
-import org.eclipse.linuxtools.tmf.ui.TmfUiTracer;
 import org.eclipse.linuxtools.tmf.ui.parsers.ParserProviderManager;
-import org.eclipse.linuxtools.tmf.ui.views.uml2sd.load.LoadersManager;
+import org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.osgi.framework.BundleContext;
@@ -24,13 +23,13 @@ import org.osgi.framework.BundleContext;
 /**
  * <b><u>TmfUiPlugin</u></b>
  * <p>
- * The activator class controls the plug-in life cycle
+ * The activator class controls the plug-in life cycle.
  */
 public class TmfUiPlugin extends AbstractUIPlugin {
 
-    // ========================================================================
+    // ------------------------------------------------------------------------
     // Attributes
-    // ========================================================================
+    // ------------------------------------------------------------------------
 
        // The plug-in ID
        public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf.ui"; //$NON-NLS-1$
@@ -38,49 +37,34 @@ public class TmfUiPlugin extends AbstractUIPlugin {
        // The shared instance
        private static TmfUiPlugin plugin;
        
-    // ========================================================================
+    // ------------------------------------------------------------------------
     // Constructors
-    // ========================================================================
+    // ------------------------------------------------------------------------
 
-       /**
-        * The constructor
-        */
        public TmfUiPlugin() {
        }
 
-    // ========================================================================
+    // ------------------------------------------------------------------------
     // Accessors
-    // ========================================================================
+    // ------------------------------------------------------------------------
 
-       /**
-        * Returns the shared instance
-        *
-        * @return the shared instance
-        */
        public static TmfUiPlugin getDefault() {
                return plugin;
        }
 
-    // ========================================================================
-    // Operators
-    // ========================================================================
+    // ------------------------------------------------------------------------
+    // AbstractUIPlugin
+    // ------------------------------------------------------------------------
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
-        */
        @Override
        public void start(BundleContext context) throws Exception {
                super.start(context);
                plugin = this;
                TmfUiTracer.init();
                ParserProviderManager.init();
+               TmfTraceElement.init();
        }
 
-    /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
-        */
        @Override
        public void stop(BundleContext context) throws Exception {
            TmfUiTracer.stop();
@@ -88,6 +72,10 @@ public class TmfUiPlugin extends AbstractUIPlugin {
                super.stop(context);
        }
 
+    // ------------------------------------------------------------------------
+    // Operations
+    // ------------------------------------------------------------------------
+
     public Image getImageFromPath(String path){
         return getImageDescripterFromPath(path).createImage();
     }
This page took 0.024792 seconds and 5 git commands to generate.