this.dicmlFile = fileDicml;
    private void openDictionary() {        File fileDicml;        String pathId;        File fileId;        IndexDicml indexDialog;                //show file-selector                //TODO: add copyright notice to documentation (IMPORTANT!!! :-) )        ExampleFileFilter filter = new ExampleFileFilter();        filter.addExtension("dicml");        filter.setDescription(i18n.getString("filechooseDicml"));        JFileChooser fileChooser = new JFileChooser();        fileChooser.setFileFilter(filter);                File parentDir = new File(props.getProperty("last-dir",System.getProperty("user.home")));        fileChooser.setCurrentDirectory(parentDir);                if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION ) {            fileDicml = fileChooser.getSelectedFile();            pathId = fileDicml.getAbsolutePath() + ".id";            fileId = new File(pathId);            if(fileId.exists()) {                openDicFile(fileDicml);                            } else {                //ask the user                if(JOptionPane.showConfirmDialog(this, MessageFormat.format(i18n.getString("filechooseQuestion"), fileDicml.getName()), i18n.getString("progName"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {                    //show indexing dialog                    indexDialog = new IndexDicml(fileDicml.getAbsolutePath() ,this, true, i18n);                                        if(!indexDialog.errorOccured)                    {                      openDicFile(fileDicml);                    }                }            }            // save the last dance, eh dir            props.setProperty("last-dir", fileDicml.getParent());                    }    }