private void reflectZoomInZoomComboBox() {
        if (reflectingZoomInZoomComboBox)
            return;
        if (document == null)
            return;
        int index = -1;
        final float zoom = documentViewController.getZoom();
        final float belowZoom = zoom * 0.99f;
        final float aboveZoom = zoom * 1.01f;
        float[] zoomLevels = documentViewController.getZoomLevels();
        if (zoomLevels != null) {
            for (int i = 0; i < zoomLevels.length; i++) {
                final float curr = zoomLevels[i];
                if (curr >= belowZoom && curr <= aboveZoom) {
                    index = i;
                    break;
                }
            }
        }
        try {
            reflectingZoomInZoomComboBox = true;

            if (zoomComboBox != null) {
                if (index > -1) {
                    zoomComboBox.setSelectedIndex(index);
                } else {
                    zoomComboBox.setSelectedItem(NumberFormat.getPercentInstance().format(zoom));
                }
            }
            // upatdate the page fit values if they are in the correct zoom range
//            if( viewModel.fitPageFlag == .PAGE_FIT_NONE ) {
//                float fitActualZoom = calcZoomForFitActualSize();
//                if( fitActualZoom >= belowZoom && fitActualZoom <= aboveZoom )
//                    viewModel.fitPageFlag = ViewModel.PAGE_FIT_ACTUAL_SIZE;
//                else {
//                    float fitPageZoom = calcZoomForFitPage();
//                    if( fitPageZoom >= belowZoom && fitPageZoom <= aboveZoom )
//                        viewModel.fitPageFlag = ViewModel.PAGE_FIT_IN_WINDOW;
//                    else {
//                        float fitWidthZoom = calcZoomForFitWidth();
//                        if( fitWidthZoom >= belowZoom && fitWidthZoom <= aboveZoom )
//                            viewModel.fitPageFlag = ViewModel.PAGE_FIT_WINDOW_WIDTH;
//                    }
//                }
//            }
        } finally {
            reflectingZoomInZoomComboBox = false;
        }
    }