* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Francois Chouinard - Initial API and implementation
+ * Francois Chouinard - Initial API and implementation
*******************************************************************************/
package org.eclipse.linuxtools.internal.tmf.ui;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
import org.eclipse.linuxtools.tmf.ui.project.model.TmfTraceElement;
import org.eclipse.linuxtools.tmf.ui.properties.TmfTimePreferences;
+import org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventAdapterFactory;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
*/
private static Activator plugin;
+ private TmfEventAdapterFactory fTmfEventAdapterFactory;
+
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
TmfUiTracer.init();
TmfTraceElement.init();
TmfTimePreferences.init();
+
+ fTmfEventAdapterFactory = new TmfEventAdapterFactory();
+ Platform.getAdapterManager().registerAdapters(fTmfEventAdapterFactory, ITmfEvent.class);
}
@Override
public void stop(BundleContext context) throws Exception {
TmfUiTracer.stop();
plugin = null;
+
+ Platform.getAdapterManager().unregisterAdapters(fTmfEventAdapterFactory);
super.stop(context);
}