- package sql_lab;
- import org.eclipse.jface.action.Action;
- import org.eclipse.jface.dialogs.MessageDialog;
- import org.eclipse.swt.widgets.Display;
- public class logoutAction extends Action {
- public logoutAction(){
- super();
- this.setText("注销(&O)");
- this.setToolTipText("注销");
- }
- public void run(){
- MainWindow.log=false;
- MessageDialog.openConfirm(Display.getCurrent().getActiveShell(), "确认消息对话框", "当前帐户已经注销");
- }
- }