private void openFileInSomeViewer(File file) {
        // openDocument the file
        if (document == null) {
            openDocument(file.getPath());
        } else if (windowManagementCallback != null) {
            int oldTool = SwingController.this.getDocumentViewToolMode();
            setDisplayTool(DocumentViewModelImpl.DISPLAY_TOOL_WAIT);
            try {
                windowManagementCallback.newWindow(file.getPath());
            } finally {
                setDisplayTool(oldTool);
            }
        }
    }