plugins/transforms/dropbox/src/main/java/org/apache/hop/pipeline/transforms/dropbox/input/DropboxInputMeta.java
public void handleStreamSelection( IStream stream ) {
        // This transform targets another transform.
        // Make sure that we don't specify the same transform for true and false...
        // If the user requests false, we blank out true and vice versa
        //
        List<IStream> targets = getTransformIOMeta().getTargetStreams();
        int index = targets.indexOf( stream );
        if ( index == 0 ) {
            // True
            //
            TransformMeta failedTransform = targets.get( 1 ).getTransformMeta();
            if ( failedTransform != null && failedTransform.equals( stream.getTransformMeta() ) ) {
                targets.get( 1 ).setTransformMeta( null );
            }
        }
        if ( index == 1 ) {
            // False
            //
            TransformMeta succesfulTransform = targets.get( 0 ).getTransformMeta();
            if ( succesfulTransform != null && succesfulTransform.equals( stream.getTransformMeta() ) ) {
                targets.get( 0 ).setTransformMeta( null );
            }
        }
    }
/**
     * When an optional stream is selected, this method is called to handled the ETL metadata implications of that.
     *
     * @param stream
     *          The optional stream to handle.
     */
When an optional stream is selected, this method is called to handled the ETL metadata implications of that.
@param stream
The optional stream to handle.
When an optional stream is selected this method is called to handled the ETL metadata implications of that . @param stream The optional stream to handle .
public void handleStreamSelection( IStream stream ) {
        List<IStream> targets = getTransformIOMeta().getTargetStreams();
        int index = targets.indexOf( stream );
        if ( index == 0 ) {
             True
            TransformMeta failedTransform = targets.get( 1 ).getTransformMeta();
            if ( failedTransform != null && failedTransform.equals( stream.getTransformMeta() ) ) {
                targets.get( 1 ).setTransformMeta( null );
            }
        }
        if ( index == 1 ) {
             False
            TransformMeta succesfulTransform = targets.get( 0 ).getTransformMeta();
            if ( succesfulTransform != null && succesfulTransform.equals( stream.getTransformMeta() ) ) {
                targets.get( 0 ).setTransformMeta( null );
            }
        }
    }
public void handleStreamSelection ( IStream stream ) { List < IStream > targets = getTransformIOMeta ( ) . getTargetStreams ( ) ; int index = targets . indexOf ( stream ) ; if ( index == 0 ) { TransformMeta failedTransform = targets . get ( 1 ) . getTransformMeta ( ) ; if ( failedTransform != null && failedTransform . equals ( stream . getTransformMeta ( ) ) ) { targets . get ( 1 ) . setTransformMeta ( null ) ; } } if ( index == 1 ) { TransformMeta succesfulTransform = targets . get ( 0 ) . getTransformMeta ( ) ; if ( succesfulTransform != null && succesfulTransform . equals ( stream . getTransformMeta ( ) ) ) { targets . get ( 0 ) . setTransformMeta ( null ) ; } } }
When an optional stream is selected, this method is called to handled the ETL metadata implications of that.
When an optional stream is selected this method is called to handled the ETL metadata implications of that .
// This transform targets another transform. // Make sure that we don't specify the same transform for true and false... // If the user requests false, we blank out true and vice versa // // True // // False //