40 lines
861 B
Java
40 lines
861 B
Java
// Copyright (c) 2021, Fr.Terrot. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package io.gitea.mylyn.core;
|
|
|
|
import org.eclipse.core.runtime.Plugin;
|
|
import org.osgi.framework.BundleContext;
|
|
|
|
public class GiteaPluginCore extends Plugin {
|
|
|
|
private static GiteaPluginCore plugin;
|
|
|
|
public static final String ID_PLUGIN = "io.gitea.mylyn.core";
|
|
|
|
public static final String CONNECTOR_KIND = "gitea";
|
|
|
|
public static final String ENCODING_UTF_8 = "UTF-8";
|
|
|
|
public GiteaPluginCore() {
|
|
}
|
|
|
|
public static GiteaPluginCore get() {
|
|
return plugin;
|
|
}
|
|
|
|
@Override
|
|
public void start(BundleContext context) throws Exception {
|
|
super.start(context);
|
|
plugin = this;
|
|
}
|
|
|
|
@Override
|
|
public void stop(BundleContext context) throws Exception {
|
|
plugin = null;
|
|
super.stop(context);
|
|
}
|
|
|
|
}
|