private void toggleTimeDiagrams() {
        final int coordX = getRightUpperCornerPosition().x + UIConstants.SPACE_BETWEEN_WINDOWS;
        final int coordY = getRightUpperCornerPosition().y;
        if (timeDiagramsWindow == null) {
            // singleton instance of TimeDiagram
            timeDiagramsWindow = new TimeDiagramsWindow(shell, SWT.NONE, nodes[nodes.length - 1], "results\\" + lastInit + "-diagrams.log");
            timeDiagramsWindow.open(coordX, coordY);
        } else {
            if (timeDiagramsWindow.isVisible()) {
                timeDiagramsWindow.hide();
            } else {
                timeDiagramsWindow.show(coordX, coordY);
            }
        }
    }