package org.yamcs.studio.core.ui;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
import org.yamcs.studio.core.vtype.YamcsVType;
import org.yamcs.utils.TimeEncoding;

public class YamcsUIPlugin extends AbstractUIPlugin {

    public static final String PLUGIN_ID = "org.yamcs.studio.core.ui";

    private static YamcsUIPlugin plugin;

    public static final String CMD_CONNECT = "org.yamcs.studio.ui.connect";

    private EventLogViewActivator eventLogActivator;

    @Override
    public void start(BundleContext context) throws Exception {
        super.start(context);
        plugin = this;
        TimeEncoding.setUp();
        ConnectionUIHelper.getInstance();
        YamcsVType.severityHandler = new SeverityHandlerSound();

        // TODO should maybe move these two to eventlog-plugin, but verify lazy behaviour
        DisplayOpener.init();
        eventLogActivator = new EventLogViewActivator();
    }

    @Override
    public void stop(BundleContext context) throws Exception {
        plugin = null;
        super.stop(context);
    }

    public static YamcsUIPlugin getDefault() {
        return plugin;
    }
}

@@ -446,24 +446,27 @@
 nnect%22;%0A%0A   
+ //
  private Eve
@@ -502,16 +502,55 @@
 tivator;
+ // TODO remove? very annoying actually
 %0A%0A    @O
@@ -939,16 +939,19 @@
 %0A       
+ //
  eventLo
@@ -991,16 +991,55 @@
 vator();
+ // TODO remove? very annoying actually
 %0A    %7D%0A%0A

Disable auto-focus of event view