public void setGrammarWindow(GrammarWindow grammarWindow) {
        if (grammarWindow == null) {
            throw new IllegalArgumentException("The arugment may not be null.");
        }

        this.grammarWindow = grammarWindow;
    }