Task #2114

Updated by Sebastien Jacquot about 2 years ago

TXMResult and TXMEditor hierarchy, modify Cooccurrence related classes to use the new hierarchy.

h3. 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


h3. 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)

h3. getSimpleName() generated string (Tree node label)

QUERY + " (" + (maxleft-1) + ", " + (maxright-1) + ")"

eg.: "faire" (10, 10)

h3. getDetails() generated string (Editor/Tab tool tip)

<pre>
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();
</pre>

Back