private static void setupUpperLevelFormula ( final Cell cell , final String originFormula , final String actionFullName , final Map < String , List < RowsMapping > > rowsMap , final ConfigBuildRef configBuildRef ) { String fullName = getFullNameFromRow ( cell . getRow ( ) ) ; // check wither it's upper level if ( actionFullName . startsWith ( fullName + ":" ) ) { // get rows mapping for upper level row List < RowsMapping > currentRowsMappingList = rowsMap . get ( fullName ) ; if ( currentRowsMappingList == null ) { currentRowsMappingList = gatherRowsMappingByFullName ( configBuildRef , fullName ) ; rowsMap . put ( fullName , currentRowsMappingList ) ; } ShiftFormulaRef shiftFormulaRef = new ShiftFormulaRef ( configBuildRef . getWatchList ( ) , currentRowsMappingList ) ; shiftFormulaRef . setFormulaChanged ( 0 ) ; buildCellFormulaForShiftedRows ( configBuildRef . getSheet ( ) , configBuildRef . getWbWrapper ( ) , shiftFormulaRef , cell , originFormula ) ; if ( shiftFormulaRef . getFormulaChanged ( ) > 0 ) { configBuildRef . getCachedCells ( ) . put ( cell , originFormula ) ; } } }
Setup upper level formula .