Task #2398
Rethink Lexicon/Index units logic
Statut: | Closed | Début: | 05/04/2017 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Development | Temps passé: | - | |
Version cible: | TXM 0.8.1 |
Description
There is a problem with the interaction between these classes leading to some code visibility, code comprehension and useless duplicate code problems. We need to rethink them and maybe also the IndexEditor and DictionnaryEditor (at least rename the last one).
I think Lexicon should extend Index. It's only an Index with a specific query [].
Then the class will benefit from all new features involved in the restructuration (eg. @Parameter annotation).
Solution¶
- Lexicon extends Index
- remove lexicon member and lexicon mode from Index class
Sous-tâches
Historique
#1 Mis à jour par Sebastien Jacquot il y a environ 7 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.7.8 à TXM 0.8.0
#2 Mis à jour par Serge Heiden il y a environ 7 ans
What a DictionnayEditor manages actually, is more a general (not TXM) lexicon than a dictionary (the entries are word forms, not lemma, and there are no definitions).
Thus it could be renamed -> LexiconEditor
#3 Mis à jour par Sebastien Jacquot il y a presque 7 ans
- Version cible changé de TXM 0.8.0 à TXM 0.8.0a (split/restructuration)
#4 Mis à jour par Sebastien Jacquot il y a plus de 6 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.2
#5 Mis à jour par Sebastien Jacquot il y a plus de 5 ans
- Description mis à jour (diff)
- Statut changé de New à Closed
- Version cible changé de TXM 0.8.2 à TXM 0.8.1