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
postSelectionEventListeners.remove(listener);
    }
    /**
     * This method is internal to the framework; it should not be implemented outside
     * the framework.
     * @return the current used single/double-click method
     * 
     */
    public static int getOpenMethod() {
        return CURRENT_METHOD;
    }
    /**
     * Set the current used single/double-click method.
     * 
     * This method is internal to the framework; it should not be implemented outside
     * the framework.
     * @param method the method to be used
     * @see OpenStrategy#DOUBLE_CLICK
     * @see OpenStrategy#SINGLE_CLICK
     * @see OpenStrategy#SELECT_ON_HOVER
     * @see OpenStrategy#ARROW_KEYS_OPEN
     */
    public static void setOpenMethod(int method) {
        if (method == DOUBLE_CLICK) {
            CURRENT_METHOD = method;
            return;
        }
        if ((method & SINGLE_CLICK) == 0) {
			throw new IllegalArgumentException("Invalid open mode"); 
		}