Bug #1127

RCP: 0.7.6, focus bugs in chart editors

Ajouté par Sebastien Jacquot il y a presque 3 ans. Mis à jour il y a plus d'un an.

Statut:Feedback Début:11/09/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

25%

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

Description

There are still some bugs related to focus gain in chart editors. These bugs are OS dependent and JVM version dependent.

Focus behaviors current state with 0.7.7 alpha and embedded JDKs: openjdk 1.6.0-unofficial-b31 (Linux and Window) and Apple JDK 1.6.0_65-b14-462-11M4609 (Mac Os X)

  • Linux Ubuntu 64bit 14.04 VM (bugs)
    • when editor is created, the chart component gets the focus as expected
      • zoom mouse wheel, keyboard shortcuts and rollover tool tips work as expected
    • when clicking outside the editor, the zoom mouse wheel keeps to work but it mustn't
      • this bug is linked to AWT hasFocus() method which acts differently according to the OS/JRE version (maybe due of the SWT/AWT mix)
    • when reopening an editor from a result node, the chart component does not get the focus back, only the mouse wheel works because of the above bug
  • Windows 7 64bit (everything is OK)
    • when editor is created, the chart component gets the focus as expected
      • zoom mouse wheel, keyboard shortcuts and rollover tool tips work as expected
    • when clicking outside the editor, the mouse wheel, keyboard and tool tips don't work, as expected
    • when reopening an editor from a result node, the chart component gets the focus back and zoom mouse wheel, keyboard shortcuts and rollover tool tips work as expected
  • Windows XP 32bit
  • Mac OS X 10.9.4 VM (bugs)
    • when editor is created, the chart component does not get the focus as expected
      • zoom mouse wheel works but it mustn't
    • when clicking in the editor, it becomes active and get the focus, as expected
      • zoom mouse wheel, keyboard shortcuts and rollover tool tips work but the keyboard zoom is done with CTRL key instead of CMD (it's another bug)
    • when clicking outside the editor, the zoom mouse wheel keeps to work but it mustn't
    • when reopening an editor from a result node, the chart component does not get the focus back, only the mouse wheel works because of the above bug

Actually we also need to discuss about the editors focus policy. The Index, Concordance, etc. editors focus policy on double click on tree node result or on click on the tab is not clear/uniform too. (The charts components provider implements its own focus policy giving focus to the chart component when the editor becomes active but it may not be the classic/default RCP behavior.)


Sous-tâches

Bug #1006: RCP: Charts editor, Mac OS X, When creating or reopening ...New

Bug #1005: RCP: Charts editor, Ubuntu, When reopening a chart editor...New

Bug #1128: RCP: 0.7.6, Ubuntu, CA chart editor focus bug when select...New

Bug #1129: RCP: 0.7.6, Ubuntu, CA multipages editor, focus is never ...Feedback


Demandes liées

lié à Feature #989: RCP: X.X, embed a jre in TXM setups Closed 16/02/2015

Historique

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

  • Statut changé de New à Feedback

#8 Mis à jour par Sebastien Jacquot il y a plus de 2 ans

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

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

In last discussions, it has been decided to automatically give the focus to the chart component on first chart editor creation/opening, on double click on a tree node result and on click on the tab title, and to discuss later about focus policy of other TXM command editors.

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

  • Description mis à jour (diff)

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

NOTE: the events of SWT and AWT are not managed the same way on Windows and Linux (even with same openJDK 6 build) and on Mac OS X (Apple 6 JDK).

Windows

on mouse entering a chart editor, the AWT event is fired but the SWT is not fired. The AWT event is fired even if the SWT editor has not the focus.

Linux

on mouse entering a chart editor, the AWT event is fired but the SWT is not fired. The AWT event is fired even if the SWT editor has not the focus. (The problem here is that the tool tips don't appear if the chart editor has not the focus unlike the Windows behavior)

Mac OS X

on mouse entering a chart editor, if the chart editor has the focus, both the AWT and SWT events are fired. If the editor has not the focus, only the SWT event is fired.

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

  • Version cible changé de TXM 0.7.7 à TXM 0.7.8

We need to fix the embedded JRE versions for OS X before continuing the work on this issue.

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

  • Version cible changé de TXM 0.7.8 à TXM 0.7.9

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

See: org.txm.rcp.chartsengine.base.SWTChartsComponentProvider.initializeAWTDelegationListeners(...).new MouseListener() {...}.mousePressed(MouseEvent)
if we need to activate() the editor part on mouse pressed.

Formats disponibles : Atom PDF