📄 textpropertydescriptorex.java
字号:
/*******************************************************************************
* $Header: /cvsroot/EOS6/work_dir/niegy/com.primeton.studio.gef.ui/src/com/primeton/studio/gef/ui/properties/TextPropertyDescriptorEx.java,v 1.1 2006/11/17 03:15:13 niegy Exp $
* $Revision: 1.1 $
* $Date: 2006/11/17 03:15:13 $
*
*==============================================================================
*
* Copyright (c) 2001-2006 Primeton Technologies, Ltd.
* All rights reserved.
*
* Created on 2006-10-30
*******************************************************************************/
package com.primeton.studio.gef.ui.properties;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.views.properties.PropertyDescriptor;
/**
* TODO此处填写 class 信息
*
* @author niegy (mailto:niegy@primeton.com)
*/
/*
* 修改历史
* $Log: TextPropertyDescriptorEx.java,v $
* Revision 1.1 2006/11/17 03:15:13 niegy
* create
*
*/
public class TextPropertyDescriptorEx extends PropertyDescriptor {
private String fPath = "";
private String fdisplayName;
/**
* @param id
* @param displayName
*/
public TextPropertyDescriptorEx(Object id, String displayName) {
super(id, displayName);
// TODO Auto-generated constructor stub
fdisplayName = displayName;
}
public void setTablepath(String path){
fPath = path;
}
/**
* The <code>TextPropertyDescriptor</code> implementation of this
* <code>IPropertyDescriptor</code> method creates and returns a new
* <code>TextCellEditor</code>.
* <p>
* The editor is configured with the current validator if there is one.
* </p>
*/
public CellEditor createPropertyEditor(Composite parent) {
CellEditor editor = new TextCellEditorEx(parent,SWT.NONE,fdisplayName,fPath);
if (getValidator() != null)
editor.setValidator(getValidator());
return editor;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -