⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opentickplugin.java

📁 EclipseTrader is a stock exchange analysis system, featuring shares pricing watch, intraday and hi
💻 JAVA
字号:
package net.sourceforge.eclipsetrader.opentick;import org.eclipse.jface.resource.ImageDescriptor;import org.eclipse.ui.plugin.AbstractUIPlugin;import org.osgi.framework.BundleContext;/** * The activator class controls the plug-in life cycle */public class OpenTickPlugin extends AbstractUIPlugin{    public static final String PLUGIN_ID = "net.sourceforge.eclipsetrader.opentick";    public static final String PREFS_SERVER = "SERVER";    public static final String PREFS_USERNAME = "USERNAME";    public static final String PREFS_PASSWORD = "PASSWORD";    private static OpenTickPlugin plugin;    /**     * The constructor     */    public OpenTickPlugin()    {        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 OpenTickPlugin getDefault()    {        return plugin;    }    /**     * Returns an image descriptor for the image file at the given     * plug-in relative path.     *     * @param path the path     * @return the image descriptor     */    public static ImageDescriptor getImageDescriptor(String path)    {        return AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, path);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -