本文整理汇总了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);
}
}
示例2: ColorPredicateFieldEditor
public ColorPredicateFieldEditor(String name, String label, Composite parent)
{
super(name, label, StringFieldEditor.UNLIMITED, StringFieldEditor.VALIDATE_ON_KEY_STROKE , parent);
}