Package org.jboss.ide.eclipse.freemarker.editor

Examples of org.jboss.ide.eclipse.freemarker.editor.Editor$Validator


    @Test
    public void value_type_check_skipped_for_null_values() throws Exception
    {
        Field field = mockField();
        MessageFormatter formatter = mockMessageFormatter();
        Validator validator = mockValidator();

        train_isRequired(validator, true);

        validator.validate(field, null, formatter, null);

        replay();

        FieldValidator fv = new FieldValidatorImpl(field, null, formatter, validator, null);
View Full Code Here


    public FieldValidator createValidator(Field field, String validatorType, String constraintValue, String overrideId,
                                          Messages overrideMessages, Locale locale)
    {
        notBlank(validatorType, "validatorType");

        Validator validator = validators.get(validatorType);

        if (validator == null)
            throw new IllegalArgumentException(
                    ServicesMessages.unknownValidatorType(validatorType, InternalUtils.sortedKeys(validators)));
View Full Code Here

    prefs.flush();

    IEditorPart part = WorkbenchUtils.openEditor(TEST_EDITOR_PROJECT + IPath.SEPARATOR + MACRO_TXT_FTL);
    assertEquals(FreemarkerMultiPageEditor.class, part.getClass());
    FreemarkerMultiPageEditor multiEditor = (FreemarkerMultiPageEditor) part;
    Editor editor = multiEditor.getEditor();
    editor.reconcileInstantly();
    OutlinePage outline = editor.getOutlinePage();
    TreeItem[] items = outline.getTreeViewer().getTree().getItems();
    assertEquals(4, items.length);
    int i = 0;
    assertEquals(MacroDirective.class, items[i++].getData().getClass());
    assertEquals(FunctionDirective.class, items[i++].getData().getClass());
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.editor.Editor$Validator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.