sleuteluiplugin.java
来自「基于Eclipse RCP开发的管理工具」· Java 代码 · 共 54 行
JAVA
54 行
package com.s10r.manager;import org.eclipse.ui.plugin.AbstractUIPlugin;import org.osgi.framework.BundleContext;public class SleutelUIPlugin extends AbstractUIPlugin{ // The plug-in ID public static final String PLUGIN_ID = "manager_rcp"; // The shared instance private static SleutelUIPlugin plugin; /** * The constructor */ public SleutelUIPlugin() { } /* * (non-Javadoc) * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) */ @Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; } /* * (non-Javadoc) * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) */ @Override public void stop(BundleContext context) throws Exception { plugin = null; super.stop(context); } /** * Returns the shared instance * * @return the shared instance */ public static SleutelUIPlugin getDefault() { return plugin; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?