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

Added by Sebastien Jacquot over 2 years ago. Updated 10 months ago.

Status:Closed Start date:04/05/2017
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Development Spent time: -
Target version: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

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

History

#1 Updated by Sebastien Jacquot over 2 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#3 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)
  • % Done changed from 80 to 50

#5 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)

#6 Updated by Sebastien Jacquot 10 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF