Task #2114
Task #2113: Use the new TXMResult and TXMEditor hierarchy and centralization
TXMResult and TXMEditor hierarchy, modify Cooccurrence related classes to use the new hierarchy
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.0a (split/restructuration) |
Description
TXMResult and TXMEditor hierarchy, modify Cooccurrence related classes to use the new hierarchy.
Steps¶
- implement "public boolean compute(ProgressWatcher watcher, TXMCommandParameters parameters)" in result class
=> OK - check the abstract handler to extract all computing code to the result compute() method
=> OK - check the editor part code
- use the methods getIntParametersValue(), etc. to fill the widgets in the command parameters area
=> OK - "public void computeResult(boolean update)" and use in it a TXMCommandParameters created with the values from the parameters area widget to compute the result
=> OK - check that "public void createPartControl(final Composite parent)" method call "super.createPartControl(parent)" to create the parameters widgets inside the hideable parameters area controlled by hide/show the editor tool bar button
=> TODO
- use the methods getIntParametersValue(), etc. to fill the widgets in the command parameters area
getName() generated string (Editor/Tab title and Status bar when clicking on a result node)¶
CORPUS_SIMPLE_NAME + ": " + QUERY + " (" + (maxleft-1) + ", " + (maxright-1) + ")"
eg.: VOEUX: "faire" (10, 10)
getSimpleName() generated string (Tree node label)¶
QUERY + " (" + (maxleft-1) + ", " + (maxright-1) + ")"
eg.: "faire" (10, 10)
getDetails() generated string (Editor/Tab tool tip)¶
StringBuffer buf = new StringBuffer(60); buf.append("Cooc: \n"); //$NON-NLS-1$ buf.append(" Corpus: " + this.corpus + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(" Query: " + this.query + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(" Properties: " + this.properties + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(" Structure: " + this.limit + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(" Empans: " + (this.minleft-1) + "<left<" + (this.maxleft-1) + " ; " + (this.minright-1) + "<right<" + (this.maxright-1) + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ buf.append(" Filters: freq>" + this.seuil_freq + " ; count>" + seuil_count + " ; score>" + seuil_score + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ return buf.toString();
Historique
#1 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#2 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
- Statut changé de New à Feedback
- % réalisé changé de 0 à 80
#3 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#4 Mis à jour par Sebastien Jacquot il y a environ 8 ans
- Description mis à jour (diff)
- % réalisé changé de 80 à 50
#5 Mis à jour par Sebastien Jacquot il y a environ 8 ans
- Description mis à jour (diff)
#6 Mis à jour par Sebastien Jacquot il y a presque 7 ans
- Statut changé de Feedback à Closed
- % réalisé changé de 50 à 100