Beispiel #1
0
  @Override
  public void stop(BundleContext context) throws Exception {
    TmfUiTracer.stop();
    TmfUiRefreshHandler.getInstance().dispose();
    plugin = null;

    Platform.getAdapterManager().unregisterAdapters(fTmfEventAdapterFactory);
    TmfTraceAdapterManager.unregisterFactory(fLostEventMarkerEventSourceFactory);
    fLostEventMarkerEventSourceFactory.dispose();
    super.stop(context);
  }
Beispiel #2
0
  @Override
  public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    TmfUiRefreshHandler.getInstance(); // to classload/initialize it
    TmfUiTracer.init();
    TmfTraceElement.init();
    TmfExperimentElement.init();

    fTmfEventAdapterFactory = new TmfEventAdapterFactory();
    Platform.getAdapterManager().registerAdapters(fTmfEventAdapterFactory, ITmfEvent.class);
    fLostEventMarkerEventSourceFactory = new LostEventsMarkerEventSourceFactory();
    TmfTraceAdapterManager.registerFactory(fLostEventMarkerEventSourceFactory, ITmfTrace.class);
  }