icommandids.java

来自「eclipse rcp 项目实例」· Java 代码 · 共 25 行

JAVA
25
字号
package com.niis.myprice.action;

/**
 * Interface defining the application's command IDs.
 * Key bindings can be defined for specific commands.
 * To associate an action with a command, use IAction.setActionDefinitionId(commandId).
 *
 * @see org.eclipse.jface.action.IAction#setActionDefinitionId(String)
 */
public interface ICommandIds {
	
	public static final String CMD_EXIT = "com.niis.myprice.exit";
    public static final String CMD_MAIL = "com.niis.myprice.mail";
    
    public static final String CMD_OPEN = "com.niis.myprice.openWare";
    public static final String CMD_SAVE = "com.niis.myprice.saveWare";
    public static final String CMD_OPEN_MESSAGE = "com.niis.myprice.openKind";
    public static final int INSERT = 0;
    public static final int MODIFY = 1;
    public static final int DELETE = 2;
    public static final int VIEW = 3;
    
    
}

⌨️ 快捷键说明

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