Package org.netbeans.modules.nodejs.forks

Examples of org.netbeans.modules.nodejs.forks.EmailAddressValidator


    }

    public void setAuthorEmail ( String email ) {
        if (email != null && !"".equals( email )) { //NOi18N
            Problems p = new Problems();
            new EmailAddressValidator().validate( p, "email", email ); //NOI18N
            if (p.hasFatal()) {
                throw new IllegalArgumentException( p.getLeadProblem().getMessage() );
            }
        }
        project.metadata().setValue( ProjectMetadata.PROP_AUTHOR_EMAIL, email );
View Full Code Here


        initComponents();
        g.add( portField, ValidatorUtils.merge( StringValidators.REQUIRE_NON_EMPTY_STRING, ValidatorUtils.merge( StringValidators.REQUIRE_VALID_NUMBER, ValidatorUtils.merge( StringValidators.REQUIRE_VALID_INTEGER, StringValidators.REQUIRE_NON_NEGATIVE_NUMBER ) ) ) );
        g.add( binaryField, ValidatorUtils.merge( StringValidators.REQUIRE_NON_EMPTY_STRING, ValidatorUtils.merge( StringValidators.FILE_MUST_EXIST, StringValidators.FILE_MUST_BE_FILE ) ) );
        g.add( sourcesField, new FileOrArchiveValidator() );
        g.add( authorField, StringValidators.REQUIRE_NON_EMPTY_STRING );
        g.add( emailField, new AllowNullValidator( new EmailAddressValidator() ) );
        UiUtil.prepareComponents( this );
        portField.getDocument().addDocumentListener( this );
        binaryField.getDocument().addDocumentListener( this );
    }
View Full Code Here

            }
        }
        set( keywordsField, sb.toString() );
        g.add( bugTrackerField, new AllowNullValidator( new UrlValidator() ) );
        g.add( nameField, StringValidators.REQUIRE_NON_EMPTY_STRING );
        g.add( authorEmailField, new AllowNullValidator( new EmailAddressValidator() ) );
        g.add( mainFileField, new FileRelativeValidator() );
        g.add( commandLineField, new WhitespaceValidator() );
        g.add( authorURLField, new AllowNullValidator( new UrlValidator() ) );
        g.add( versionField, new VersionValidator() );
    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.nodejs.forks.EmailAddressValidator

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.