ietypepropertydescriptor.java
来自「一个简单的CellEditor的例子 希望给学习java的朋友一点帮助」· Java 代码 · 共 30 行
JAVA
30 行
package com.intotherain.examples.SimpleCellEditor.properties;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.views.properties.PropertyDescriptor;
import com.intotherain.examples.SimpleCellEditor.CellEditors.EditIETypeCellEditor;
import com.intotherain.examples.SimpleCellEditor.model.Record;
/**
*
* @author intotherain
*
*/
public class IETypePropertyDescriptor extends PropertyDescriptor{
private Record record;
public IETypePropertyDescriptor(Object id, String displayName, Record r) {
super(id, displayName);
record = r;
}
@Override
public CellEditor createPropertyEditor(Composite parent) {
return new EditIETypeCellEditor(parent, record);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?