client/src/main/java/lighthouse/subwindows/AddProjectTypeWindow.java
private boolean validateAndSync() {
        if (serverAssisted.isSelected()) {
            if (serverNameCombo.getValue() == null || serverNameCombo.getValue().equals("")) {
                GuiUtils.arrowBubbleToNode(serverNameCombo, tr("You must pick a server."));
                return false;
            } else if (!isServerNameValid(serverNameCombo.getValue())) {
                GuiUtils.arrowBubbleToNode(serverNameCombo, tr("The server name is not considered valid."));
                return false;
            }
        }

        model.serverName.set(serverAssisted.isSelected() ? serverNameCombo.getValue() : "");
        return true;
    }
// Returns true if form is valid.
Returns true if form is valid.
Returns true if form is valid .
private boolean validateAndSync() {
        if (serverAssisted.isSelected()) {
            if (serverNameCombo.getValue() == null || serverNameCombo.getValue().equals("")) {
                GuiUtils.arrowBubbleToNode(serverNameCombo, tr("You must pick a server."));
                return false;
            } else if (!isServerNameValid(serverNameCombo.getValue())) {
                GuiUtils.arrowBubbleToNode(serverNameCombo, tr("The server name is not considered valid."));
                return false;
            }
        }
        model.serverName.set(serverAssisted.isSelected() ? serverNameCombo.getValue() : "");
        return true;
    }
private boolean validateAndSync ( ) { if ( serverAssisted . isSelected ( ) ) { if ( serverNameCombo . getValue ( ) == null || serverNameCombo . getValue ( ) . equals ( "" ) ) { GuiUtils . arrowBubbleToNode ( serverNameCombo , tr ( "You must pick a server." ) ) ; return false ; } else if ( ! isServerNameValid ( serverNameCombo . getValue ( ) ) ) { GuiUtils . arrowBubbleToNode ( serverNameCombo , tr ( "The server name is not considered valid." ) ) ; return false ; } } model . serverName . set ( serverAssisted . isSelected ( ) ? serverNameCombo . getValue ( ) : "" ) ; return true ; }
Returns true if form is valid.
Returns true if form is valid .