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

📄 correctionviewaction.java

📁 Eclipse高级编程3源码(书本源码)
💻 JAVA
字号:
/*******************************************************************************
 * Copyright (c) 2003 Berthold Daum. All rights reserved. This program and the
 * accompanying materials are made available under the terms of the Common
 * Public License v1.0 which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors: Berthold Daum
 ******************************************************************************/
package com.bdaum.SpellChecker.actions;

import org.eclipse.jface.action.Action;
import com.bdaum.SpellChecker.views.SpellCorrectionView;

public class CorrectionViewAction extends Action {

	public static final int DOUBLECLICK = 0;

	public static final int REPLACE = 1;

	public static final int REPLACEALL = 2;

	public static final int IGNORE = 3;

	public static final int IGNOREALL = 4;

	public static final int ADD = 5;

	public static final int CANCEL = 6;

	private SpellCorrectionView view;

	private int operation;

	public CorrectionViewAction(SpellCorrectionView view, int operation) {
		this.view = view;
		this.operation = operation;
	}

	/*
	 * Perform action
	 */
	public void run() {
		view.performOperation(operation);
	}
}

⌨️ 快捷键说明

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