Task #2045

Mutualize and clarify TXMResult, Function, TXMObject, HasResults

Added by Sebastien Jacquot over 3 years ago. Updated 7 months ago.

Status:Closed Start date:02/16/2017
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Development Spent time: -
Target version:TXM 0.8.1

Description

Mutualize and clarify TXMResult, Function, TXMObject, HasResults. It will also permit to avoid cyclic dependencies in plug-ins.

Locations:
http://svn.code.sf.net/p/txm/code/trunk/Toolbox/trunk/org.textometrie.toolbox/src/java/org/txm/functions/TXMResult.java
MD: permet d'identifier un résulat parmis d'autres objets. Pas bcp exploité
http://svn.code.sf.net/p/txm/code/trunk/Toolbox/trunk/org.textometrie.toolbox/src/java/org/txm/functions/Function.java
MD: permet de gérer un ProgressDialog depuis la Toolbox.
MD: mais il y a aussi une embrouille entre une Function qui produit un résultat mais qui est aussi le résultat
http://svn.code.sf.net/p/txm/code/trunk/Toolbox/trunk/org.textometrie.toolbox/src/java/org/txm/objects/TxmObject.java
MD: m'a servi à implémenter la logique de Workspace qui contient des Projets, qui contiennent des Bases qui contiennent des Corpus qui contiennent des Text qui contiennent des Edition qui contiennent des Page. Et de généraliser la sauvegarde et le chargement de tous objets depuis le fichier default.xml qui se trouve dans le dossier "workspaces" du répertoire de travail de TXM (~/TXM)
http://svn.code.sf.net/p/txm/code/trunk/Toolbox/trunk/org.textometrie.toolbox/src/java/org/txm/objects/Result.java
MD: tentative de généralisation d'un résultat TXM qui :

MD: pour conclure, 2 choses à faire
MD: 1) repenser les objets Project, Base, Corpus, Text, Edition et Page et leur sauvegarde
MD: 2) choisir si une Function créé un Result ou si la Function contient un résult ou si la Function est aussi le Result

WIP (Framapad):

Define what is a result, what is an object ans what is a function. Remove and merge useless code.

Solution

  • define abstract methods in TXMResult
  • checks that all results extend TXMResult
  • create a class TXMEditorInput that stores the TXMResult object as in the ChartEditorInput (checks and reuse the source code of CustomizableEditor)
  • use one of these methods in TXMEditorPart.init() to set part name with: setPartName(editorInput.getResult().getName())

History

#1 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#2 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#3 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#5 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#6 Updated by Matthieu Decorde over 3 years ago

  • Description updated (diff)

#7 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#8 Updated by Matthieu Decorde over 3 years ago

  • Description updated (diff)

#9 Updated by Sebastien Jacquot almost 2 years ago

  • Status changed from New to In Progress
  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
  • % Done changed from 0 to 80

A lot of work and modifications has been done about this issue. Need to formalize the new behaviors and hierarchy in the Specs/Wiki.

#10 Updated by Sebastien Jacquot over 1 year ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.2

#11 Updated by Sebastien Jacquot 7 months ago

  • Description updated (diff)
  • Status changed from In Progress to Closed
  • Target version changed from TXM 0.8.2 to TXM 0.8.1
  • % Done changed from 80 to 100

Also available in: Atom PDF