pepticplugin.java
来自「Python Development Environment (Python I」· Java 代码 · 共 53 行
JAVA
53 行
package org.python.pydev.refactoring;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class PepticPlugin extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.python.pydev.refactoring";
// The shared instance
private static PepticPlugin plugin = null;
/**
* The constructor
*/
public PepticPlugin() {
plugin = this;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static PepticPlugin getDefault() {
return plugin;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?