Q7

Expansion of tree items does not work exactly as user

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2.0
  • Fix Version/s: 1.3.x
  • Component/s: Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

Currently when we expand tree items, we send only SWT.Expand events.
In some cases it causes issues, for example using single click for opening files in explorer:
Behaviour of org.eclipse.jface.util.OpenStrategy listener:
Expand: expandOccured = true
Collapse: collapseOccured = true
MouseDown: expandOccured || collapseOccured ? clear flags : perform single click open

Therefore, when we expand item and then set selection, OpenStrategy "thinks" that it is click from expand event and does not open editor

Solution:
instead of just Expand, send MouseDown, Expand, MouseUp

Problem:
Looks like Expand event is caused by MouseDown (at least on Mac). So probably we need to send just MouseDown. But we also need to correctly define the position of 'expansion' icon for mouse events

Activity

There are no comments yet on this issue.

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    22/Jun/12 7:57 PM
    Updated:
    16/Jan/13 5:54 PM