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

📄 descriptioncelleditor.java

📁 基于Java RCP 应用的属性编辑, 可以对RCP 程序进行属性的设置
💻 JAVA
字号:
package commonproperties.propdes;

import org.eclipse.jface.viewers.DialogCellEditor;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

import commonproperties.dialog.DescriptionDialog;

public class DescriptionCellEditor extends DialogCellEditor {

	/*
	 * used to store description
	 */
	private String description = "";

	public DescriptionCellEditor(Composite parent, String description) {
		super(parent);
		this.description = description;
	}

	@Override
	protected Object openDialogBox(Control cellEditorWindow) {
		DescriptionDialog dialog = new DescriptionDialog(cellEditorWindow
				.getShell(), description);
		dialog.open();
		return dialog.getDescription();
	}

}

⌨️ 快捷键说明

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