Package org.apache.directory.studio.connection.ui

Examples of org.apache.directory.studio.connection.ui.ConnectionParameterPage


     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if ( page != null
            && ( page.getMessage() != null || page.getInfoMessage() != null || page.getErrorMessage() != null ) )
        {
            if ( page.getMessage() != null )
            {
                setMessage( page.getMessage() );
            }
            else if ( page.getInfoMessage() != null )
            {
                setMessage( page.getInfoMessage() );
            }
            else
            {
                setMessage( null );
            }
            setErrorMessage( page.getErrorMessage() );
            setValid( page.isValid() );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
            {
                if ( pages[i].getMessage() != null || pages[i].getInfoMessage() != null
                    || pages[i].getErrorMessage() != null )
                {
                    if ( page.getMessage() != null )
                    {
                        setMessage( page.getMessage() );
                    }
                    else if ( page.getInfoMessage() != null )
                    {
                        setMessage( page.getInfoMessage() );
                    }
                    else
                    {
                        setMessage( null );
                    }
View Full Code Here


     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if ( page != null
            && ( page.getMessage() != null || page.getInfoMessage() != null || page.getErrorMessage() != null ) )
        {
            if ( page.getMessage() != null )
            {
                setMessage( page.getMessage() );
            }
            else if ( page.getInfoMessage() != null )
            {
                setMessage( page.getInfoMessage() );
            }
            else
            {
                setMessage( null );
            }
            setErrorMessage( page.getErrorMessage() );
            setValid( page.isValid() );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
            {
                if ( pages[i].getMessage() != null || pages[i].getInfoMessage() != null
                    || pages[i].getErrorMessage() != null )
                {
                    if ( page.getMessage() != null )
                    {
                        setMessage( page.getMessage() );
                    }
                    else if ( page.getInfoMessage() != null )
                    {
                        setMessage( page.getInfoMessage() );
                    }
                    else
                    {
                        setMessage( null );
                    }
View Full Code Here

     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if( page != null && !page.isValid() )
        {
            setMessage( page.getMessage() );
            setErrorMessage( page.getErrorMessage() );
            setValid( false );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
View Full Code Here

     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if ( page != null
            && ( page.getMessage() != null || page.getInfoMessage() != null || page.getErrorMessage() != null ) )
        {
            if ( page.getMessage() != null )
            {
                setMessage( page.getMessage() );
            }
            else if ( page.getInfoMessage() != null )
            {
                setMessage( page.getInfoMessage() );
            }
            else
            {
                setMessage( null );
            }
            setErrorMessage( page.getErrorMessage() );
            setValid( page.isValid() );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
            {
                if ( pages[i].getMessage() != null || pages[i].getInfoMessage() != null
                    || pages[i].getErrorMessage() != null )
                {
                    if ( page.getMessage() != null )
                    {
                        setMessage( page.getMessage() );
                    }
                    else if ( page.getInfoMessage() != null )
                    {
                        setMessage( page.getInfoMessage() );
                    }
                    else
                    {
                        setMessage( null );
                    }
View Full Code Here

     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if ( page != null
            && ( page.getMessage() != null || page.getInfoMessage() != null || page.getErrorMessage() != null ) )
        {
            if ( page.getMessage() != null )
            {
                setMessage( page.getMessage() );
            }
            else if ( page.getInfoMessage() != null )
            {
                setMessage( page.getInfoMessage() );
            }
            else
            {
                setMessage( null );
            }
            setErrorMessage( page.getErrorMessage() );
            setValid( page.isValid() );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
            {
                if ( pages[i].getMessage() != null || pages[i].getInfoMessage() != null
                    || pages[i].getErrorMessage() != null )
                {
                    if ( page.getMessage() != null )
                    {
                        setMessage( page.getMessage() );
                    }
                    else if ( page.getInfoMessage() != null )
                    {
                        setMessage( page.getInfoMessage() );
                    }
                    else
                    {
                        setMessage( null );
                    }
View Full Code Here

     * Validates the dialog.
     */
    private void validate()
    {
        int index = tabFolder.getSelectionIndex();
        ConnectionParameterPage page = index >= 0 ? pages[tabFolder.getSelectionIndex()] : null;
        if ( page != null
            && ( page.getMessage() != null || page.getInfoMessage() != null || page.getErrorMessage() != null ) )
        {
            if ( page.getMessage() != null )
            {
                setMessage( page.getMessage() );
            }
            else if ( page.getInfoMessage() != null )
            {
                setMessage( page.getInfoMessage() );
            }
            else
            {
                setMessage( null );
            }
            setErrorMessage( page.getErrorMessage() );
            setValid( page.isValid() );
        }
        else
        {
            for ( int i = 0; i < pages.length; i++ )
            {
                if ( pages[i].getMessage() != null || pages[i].getInfoMessage() != null
                    || pages[i].getErrorMessage() != null )
                {
                    if ( page.getMessage() != null )
                    {
                        setMessage( page.getMessage() );
                    }
                    else if ( page.getInfoMessage() != null )
                    {
                        setMessage( page.getInfoMessage() );
                    }
                    else
                    {
                        setMessage( null );
                    }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.connection.ui.ConnectionParameterPage

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.