public void addFileSelectPart ( ) throws EFapsException { final Type type ; // if a previous select exists it is based on the previous select, // else it is based on the basic table if ( this . selectParts . size ( ) > 0 ) { type = this . selectParts . get ( this . selectParts . size ( ) - 1 ) . getType ( ) ; } else { type = this . query . getMainType ( ) ; } final FileSelectPart linkto = new FileSelectPart ( type ) ; this . selectParts . add ( linkto ) ; }
Add the select part to connect the general store .