Feature #996

Task #1471: RCP: improve the editors linkage system and the views/editors synchronization

Link Progression chart with other command editors (synchronous and asynchronous)

Ajouté par Sebastien Jacquot il y a environ 3 ans. Mis à jour il y a 7 mois.

Statut:New Début:30/09/2015
Priorité:Normal Echéance:
Assigné à:- % réalisé:

67%

Catégorie:Charts Temps passé: -
Version cible:TXM 0.7.9

Description

Progression => Concordance

  • on point selection:
    • display a label area containing:
      • the 'ref' property if exists otherwise the 'text:id' property
      • the global position in corpora and the total count of all tokens of the corpora
      • the number of the selected token and the frequency in corpora of the selected token
    • if a linked Concordance editor already exists for the selected token, move to the right page and select the table row of the selected token
    • in case of extended selection, it is the last selected point that is used to update the Concordance editor
  • on double click:
    • open a Concordance editor using the query of the selected token line, compute and display the page of the selected token according to current sorting order and select the table row of the selected token
      • split the editor area so the Progression chart and the new Concordance are visible
    • a new editor is opened for each query (for each line of the chart)
      • if the area already contains a linked Concordance, split the Concordance editor area so all the linked Concordances are visible
  • manage a way to open a Concordance editor based on more than one line of the Progression chart:
    • we may used contextual menu to do this, something as "Compute the concordance of the selected lines"
    • we also may offer a way to compute the Concordance only for the selected points? Can it be useful?

Progression => Edition

  • on CTRL/CMD + double click:
    • open an Edition editor using the queries of all the lines of the chart to highlight the token, highlight "more" the token of the line that has triggered the event and move to the page of the selected token

Concordance => Progression

  • on table row selection:
    • proceed to the "on point selection" event of the Progression chart (display label)

Hyperlinks (asynchronous editors)

See subtasks issues.

----------------
Old specifications on the french Wiki: https://groupes.renater.fr/wiki/txm-info/public/specs_charts_progression_repartition


Sous-tâches

Feature #1538: Progression chart, send selection to index (hyperlink / a...In Progress

Feature #1539: Progression chart, send selection to concordance (hyperli...In Progress

Feature #1540: Progression chart, send selection to cooccurrence (hyperl...Feedback

Feature #1670: Progression chart, link selection with concordance (synch...Feedback

Feature #1671: Progression chart, link selection with edition (synchrono...In Progress

Task #1677: Concordance, link selection with progression chart (synch...New

Historique

#1 Mis à jour par Sebastien Jacquot il y a presque 3 ans

  • Version cible changé de TXM 0.7.7 à TXM 0.7.8

Implement a global interfaces system for editors communications and updating data/state of an editor from another one ?
First ideas:
- store a list of linked editors in the source editors (e.g.: getLinkedEditor(int i))
- define and implement a method as doSomething(Object param) which specify something to do and use it on some events.
- in some events loop through all the linked editors and call doSomething(Event event) or other param type

e.g. for linking Progression and Concordance editors:

- on double-click on a Progression point, test if there is already a linked editor with result object of type "Concordance" (see getSource() of TXM CustomizableEditor class). If no, create a Concordance editor and add the Progression editor as linked editor to it. Also add the Concordance editor as linked editor to the Progression editor.
Loop through all the linked editors and call doSomething()
- on double-click on a Concordance row, call in the event listener all the doSomething(Object param) methods of all the linked editors

This system should permit, for a same kind of editor, an easy use of this editor without links, with one link and with multiple links

(NOTE: ATM the current Concordance/Edition communications is hard coded which make it not really easy to add links)

[Edit] These questions/proposals have now their own issue: http://forge.cbp.ens-lyon.fr/redmine/issues/1471

#2 Mis à jour par Serge Heiden il y a presque 3 ans

Hypertext Infrastructure

For a general hypertext infrastructure, we must link to related portal and desktop tickets:
  • Portal: Feature #667 (Resolved): GWT: x.x, HTML pages, hyperlinks (external, internal, command)
    • and his descendants
  • Desktop: Bug #229 (In Progress): RCP: 0.7.2, improve Index to Concordance link
  • etc.

Link Transitivity

If a command result may link to several commands, a particular link may also herit some command parameters from the link it come from: for example a double-clic on a concordance line can have a different behavior depending on the link we come from to build the concordance.

#3 Mis à jour par Sebastien Jacquot il y a environ 2 ans

  • Tâche parente mis à #1471

#4 Mis à jour par Sebastien Jacquot il y a environ 2 ans

  • Sujet changé de RCP: 0.7.6, link Progression chart with Concordance à RCP: 0.7.6, link Progression chart with other command editors

#5 Mis à jour par Sebastien Jacquot il y a environ 2 ans

  • Sujet changé de RCP: 0.7.6, link Progression chart with other command editors à RCP: 0.7.6, link Progression chart with Concordance
  • Description mis à jour (diff)
  • Tâche parente #1471 supprimé

#6 Mis à jour par Sebastien Jacquot il y a environ 2 ans

  • Tâche parente mis à #1471

#7 Mis à jour par Sebastien Jacquot il y a environ 2 ans

  • Sujet changé de RCP: 0.7.6, link Progression chart with Concordance à RCP: 0.7.6, link Progression chart with other command editors

#8 Mis à jour par Matthieu Decorde il y a environ 2 ans

  • Version cible changé de TXM 0.7.8 à TXM 0.7.9

#9 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Sujet changé de RCP: 0.7.6, link Progression chart with other command editors à Link Progression chart with other command editors
  • Description mis à jour (diff)

#10 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#11 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#12 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#13 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#14 Mis à jour par Sebastien Jacquot il y a presque 2 ans

There is no RCP API to programatically split the editor area in Eclipse 3.x. It is possible to do that in Eclipse 4.x through the Model service but we don't use 4.x model, we use the 3.x model.

Here is a 3.x workaround by generating fake drag event: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/tests/org.eclipse.ui.tests/Eclipse%20UI%20Tests/org/eclipse/ui/tests/session/Bug95357Test.java
I didn't manage to implement this example, it seems to use another bundle version of org.eclipse.ui than we use, e.g. PartSite doesn't have method getPane() in our version.

#15 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#16 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Sujet changé de Link Progression chart with other command editors à Link Progression chart with other command editors (synchronous and asynchronous)
  • % réalisé changé de 0 à 50

#17 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#18 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.7.9 à TXM 0.7.8

#19 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.7.8 à TXM 0.7.9

#20 Mis à jour par Sebastien Jacquot il y a 7 mois

The split is now effective. But the new opened Concordance editor should hide the settings. (tested on Win XP)

#21 Mis à jour par Sebastien Jacquot il y a 7 mois

The context menu of a linked Edition is not the same that when opening an Edition "normally" and the "Send to concordance" command does nothing. The system may use the old Edition code and should use now the Synoptic edition (is it now the default edition?).

Formats disponibles : Atom PDF