当前位置: 首页>>代码示例>>Java>>正文


Java StringFieldEditor.VALIDATE_ON_KEY_STROKE属性代码示例

本文整理汇总了Java中org.eclipse.jface.preference.StringFieldEditor.VALIDATE_ON_KEY_STROKE属性的典型用法代码示例。如果您正苦于以下问题:Java StringFieldEditor.VALIDATE_ON_KEY_STROKE属性的具体用法?Java StringFieldEditor.VALIDATE_ON_KEY_STROKE怎么用?Java StringFieldEditor.VALIDATE_ON_KEY_STROKE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.jface.preference.StringFieldEditor的用法示例。


在下文中一共展示了StringFieldEditor.VALIDATE_ON_KEY_STROKE属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createFieldEditors

/**
 * Creates the field editors. Field editors are abstractions of the common
 * GUI blocks needed to manipulate various types of preferences. Each field
 * editor knows how to save and restore itself.
 */
public void createFieldEditors() {
	addField(new ColorFieldEditor(ColorManager.COLOR_FOREACH_DIRECTIVE,
			UIUtil.getResourceLabel("ForeachDirective"), getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_IF_DIRECTIVE, UIUtil.getResourceLabel("IfDirective"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_MACRO_DIRECTIVE, UIUtil.getResourceLabel("MacroDirective"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_SET_DIRECTIVE, UIUtil.getResourceLabel("SetDirective"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_VARIABLE, UIUtil.getResourceLabel("VelocityVariable"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_COMMENT, UIUtil.getResourceLabel("VelocityComment"),
			getFieldEditorParent()));

	addField(new ColorFieldEditor(ColorManager.COLOR_PROC_INSTR, UIUtil.getResourceLabel("XMLInstruction"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_STRING, UIUtil.getResourceLabel("XMLString"),
			getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_TAG, UIUtil.getResourceLabel("XMLTag"), getFieldEditorParent()));
	addField(new ColorFieldEditor(ColorManager.COLOR_XML_COMMENT, UIUtil.getResourceLabel("XMLComment"),
			getFieldEditorParent()));
	{
		IntegerFieldEditor integerFieldEditor = new IntegerFieldEditor(AUTO_COMPLETE_DEPLAY, "Auto Completion Delay(ms):",
				getFieldEditorParent());
		integerFieldEditor.setStringValue("80");
		integerFieldEditor.setValidRange(0, 9999);
		addField(integerFieldEditor);
	}
	{
		StringFieldEditor stringFieldEditor = new StringFieldEditor(MACRO_TEMPLATE_PATH, "Macro Template Path:", 40, StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent());
		stringFieldEditor.setEmptyStringAllowed(false);
		stringFieldEditor.setStringValue("/src/main/webapp/home/templates/");
		addField(stringFieldEditor);
	}
}
 
开发者ID:ninneko,项目名称:velocity-edit,代码行数:40,代码来源:MainPreferences.java

示例2: ColorPredicateFieldEditor

public ColorPredicateFieldEditor(String name, String label, Composite parent)
{
    super(name, label, StringFieldEditor.UNLIMITED, StringFieldEditor.VALIDATE_ON_KEY_STROKE , parent);
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:4,代码来源:ColorPredicateFieldEditor.java


注:本文中的org.eclipse.jface.preference.StringFieldEditor.VALIDATE_ON_KEY_STROKE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。