plugins/org.wso2.developerstudio.eclipse.docker.distribution/src/org/wso2/developerstudio/eclipse/docker/distribution/editor/DockerHubLoginPage.java
/**
     * Method for validations of wizard page. If validation fails set page as dirty
     * and not complete
     */
Method for validations of wizard page. If validation fails set page as dirty
and not complete
Method for validations of wizard page . If validation fails set page as dirty and not complete
private void validate() {
        if (getUsernameValue() == null || getUsernameValue().equals(EMPTY_STRING)) {
            setErrorMessage("Please enter the Docker registry username");
            setPageComplete(false);
            return;
        } else if (getPasswordValue() == null || getPasswordValue().equals(EMPTY_STRING)) {
            setErrorMessage("Please enter the Docker registry password");
            setPageComplete(false);
            return;
        } else if (getSelectedRegistryType().equals(OTHER_REGISTRY)
                && (getDockerHubOtherRegistryURL() == null || getDockerHubOtherRegistryURL().isEmpty())) {
            setErrorMessage("Please enter a valid registry URL to push the Docker image");
            setPageComplete(false);
            return;
        }
        setErrorMessage(null);
        setPageComplete(true);
    }
private void validate ( ) { if ( getUsernameValue ( ) == null || getUsernameValue ( ) . equals ( EMPTY_STRING ) ) { setErrorMessage ( "Please enter the Docker registry username" ) ; setPageComplete ( false ) ; return ; } else if ( getPasswordValue ( ) == null || getPasswordValue ( ) . equals ( EMPTY_STRING ) ) { setErrorMessage ( "Please enter the Docker registry password" ) ; setPageComplete ( false ) ; return ; } else if ( getSelectedRegistryType ( ) . equals ( OTHER_REGISTRY ) && ( getDockerHubOtherRegistryURL ( ) == null || getDockerHubOtherRegistryURL ( ) . isEmpty ( ) ) ) { setErrorMessage ( "Please enter a valid registry URL to push the Docker image" ) ; setPageComplete ( false ) ; return ; } setErrorMessage ( null ) ; setPageComplete ( true ) ; }
Method for validations of wizard page.
Method for validations of wizard page .