Bug 246209 [Viewers] OpenStrategy postSelection delay hinders automated testing
Build ID: I20080617-2000 Steps To Reproduce: The initializeHandler method runs the firePostSelectionEvent after the TIME=500 ms, which causes the automated tests to fail unless the thread is made to sleep for 500+ ms after each arrow key pressed, which is cumbersome. More information: Could we have the TIME member public, to set to 0 when testing? Probably that would be a good idea to have some kind of a more global flag (maybe in Display) to turn off optimizations that are hostile to event driven testing?
bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java
*/
    public static final int DOUBLE_CLICK = 0;
    /** 
     * Single click will open the item.
     */
    public static final int SINGLE_CLICK = 1;
    /** 
     * Hover will select the item.
     */
    public static final int SELECT_ON_HOVER = 1 << 1;
    /**
     * Open item when using arrow keys
     */
    public static final int ARROW_KEYS_OPEN = 1 << 2;
    /** A single click will generate
     * an open event but key arrows will not do anything.
     * 
     * @deprecated
     */
    public static final int NO_TIMER = SINGLE_CLICK;
    /** A single click will generate an open
     * event and key arrows will generate an open event after a
     * small time.
     * 
     * @deprecated
     */
    public static final int FILE_EXPLORER = SINGLE_CLICK | ARROW_KEYS_OPEN;
    /** Pointing to an item will change the selection
     * and a single click will gererate an open event
     *