Task #2400

Standardize the text labels of the results in some UI locations

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

Status:New Start date:06/08/2018
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:UI Spent time: -
Target version:TXM 0.8.2

Description

Define:

  • getName()
  • getSimpleName()
  • getAdvancedName()?
  • getDetails()?
  • toString()
Uses these and which methods to display in these possible locations:
  • Corpora view
    • tree node label (AdapterFactory) (I think this node should be updated when some parameters of the command change, eg. for Wordcloud I did that and display the fmin/vmax in the node : Worcloud (20/200))
    • status bar (when clicking on a node result)
  • Editor
    • tab title
    • tab tool tip
    • chart title
    • chart subtitle
    • add some extra legend in chart with more details?
  • Log
    • console
  • Export
    • prefilled file name when exporting a result (could be the editor tab title, it is not uniformed at this moment)

getAdvancedName() could return a string dedicated to "advanced users" following XML pattern with @ showing what is SU and what is SUP, eg.:

  • partition name: DISCOURS_text@loc
  • use one of these methods in the CorporaView click listener to update the status bar (location: org/txm/rcpapplication/views/CorporaView.java)
  • use one of these methods in the export dialog to fill the file name
  • define methods Log.info(TXMResult), severe(TXMResult), etc. that call TXMResult.toString() and use them for logging. This methods should also call the stack to display the method name in log.

WIP:

This ticket is dedicated to centralize and check the standardizing of result text labels in UI at 3 locations:

  • Corpora view tree node label
  • Editor/Tab title and Status bar when clicking on a result node
  • Editor/Tab tool tip
  • TODO: add information Area at bottom toolbar ? redundancy with status bar?

Dev note: methods called in each area are:

  • getSimpleName() (Tree node label)
  • getName()(Editor/Tab title and Status bar when clicking on a result node)
  • getDetails() (Editor/Tab tool tip)
  • getComputingStartMessage() (redirigé vers la console par TXMEditor lors d'un compute)
  • getComputingDoneMessage() (redirigé vers la console par TXMEditor lors d'un compute)
  • create some methods?: getParametersDetails(), getSummary(), etc.
  • getDeleteMessage(), getComputingFailedMessage() ?
TXMResult Tree Node label Editor/Tab title and Status bar Editor/Tab tool tip
Concordance
Cooccurrence
Index
Properties
Partition Properties
InternalView
LexicalTable
Lexicon
Referencer
Specificities
SpecificitiesSelection
AHC PARENT_CA_NAME idem idem
VOEUX_text_annee:word idem idem
CA PARENT_CORPUS_SIMPLE_NAME OR PARENT_PARTITION_SIMPLE_NAME + ":" + PROPERTY_NAME + " (" + FIRST_DIMENSION + "," + SECOND_DIMENSION + ")" PROPERTY_NAME + " (" + FIRST_DIMENSION + "," + SECOND_DIMENSION + ")"
VOEUX_text_annee:word (1,3) word (1,3) "FMin = " + this.getLexicalTable().getFMin()
Progression

Related issues

related to Task #2768: Standardize and restore the messages in status bar New 02/14/2020

History

#1 Updated by Sebastien Jacquot over 2 years ago

  • Subject changed from Uniformize the text labels of the results in some UI location to Standardize the text labels of the results in some UI locations
  • Description updated (diff)

#2 Updated by Sebastien Jacquot over 2 years ago

  • Description updated (diff)

#3 Updated by Sebastien Jacquot over 2 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot about 2 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0

#5 Updated by Matthieu Decorde over 1 year ago

  • Description updated (diff)

#6 Updated by Sebastien Jacquot over 1 year ago

  • Description updated (diff)

#7 Updated by Sebastien Jacquot over 1 year ago

In TXM0.8.0, to restore the start computing and end computing messages of 0.7.9 commands, I added two methods: getComputingStartMessage and getComputingDoneMessage implemented only for some results. Need to add them to the table and check for all kind of result in 0.8.1. These methods also must be abstract in 0.8.1.

#8 Updated by Matthieu Decorde over 1 year ago

  • Target version changed from TXM 0.8.0 to TXM X.X

#9 Updated by Sebastien Jacquot 11 months ago

  • Description updated (diff)
  • Target version changed from TXM X.X to TXM 0.8.2

Also see: https://sharedocs.huma-num.fr/#/948/9592/Sp%C3%A9cifications for start and of computing messages definition for each command.

#10 Updated by Sebastien Jacquot 11 months ago

  • Description updated (diff)

#11 Updated by Sebastien Jacquot 9 months ago

  • Description updated (diff)

Also available in: Atom PDF