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

📄 ietypepropertydescriptor.java

📁 一个简单的CellEditor的例子 希望给学习java的朋友一点帮助
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -