exitaction.java
来自「mywork是rcp开发的很好的例子」· Java 代码 · 共 31 行
JAVA
31 行
/************************************************************
*
* Copyright (c) 2003 Chemi. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://www.opensource.org/licenses/mit-license.html
*
************************************************************/
package es.org.chemi.games.sokoban.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.ui.PlatformUI;
import es.org.chemi.games.sokoban.SokobanPlugin;
public class ExitAction extends Action
{
public ExitAction(String label)
{
super(label);
}
public void run()
{
SokobanPlugin.trace(this.getClass().getName(),"Exit game solicited."); //$NON-NLS-1$
PlatformUI.getWorkbench().close();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?