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
* @deprecated
     */
    public static final int ACTIVE_DESKTOP = SINGLE_CLICK | SELECT_ON_HOVER;
    
    private static final int TIME = 500;
    /* SINGLE_CLICK or DOUBLE_CLICK;
     * In case of SINGLE_CLICK, the bits SELECT_ON_HOVER and ARROW_KEYS_OPEN
     * my be set as well. */
    private static int CURRENT_METHOD = DOUBLE_CLICK;
    private Listener eventHandler;
    private ListenerList openEventListeners = new ListenerList();
    private ListenerList selectionEventListeners = new ListenerList();
    private ListenerList postSelectionEventListeners = new ListenerList();
    /**
     * @param control the control the strategy is applied to
     */
    public OpenStrategy(Control control) {
        initializeHandler(control.getDisplay());
        addListener(control);
    }
    /**
     * Adds an IOpenEventListener to the collection of openEventListeners
     * @param listener the listener to add
     */
    public void addOpenListener(IOpenEventListener listener) {
        openEventListeners.add(listener);
    }
    /**
     * Removes an IOpenEventListener to the collection of openEventListeners
     * @param listener the listener to remove