Bug 32286 ControlExample Button Tab - changing styles resets button orientation
Problem Description: When using the Button controls from the SWT Controls example, if SWT.ARROW buttons are used and SWT.BORDER property is selected or deselected, the arrow alignment property of all the arrow buttons is reset to UP. Steps to Reproduce: 1. Ensure that Eclipse is not running. Install the M5 example plug-ins. 2. Start Eclipse. 3. Accept new configuration defaults. 4. Go to Window->Show View->Other and select SWT Controls under SWT Examples. A new SWT Controls view appears. 5. Expand the new view if neccesary, and click on the button tab. 6. On the right of the pane, select "SWT.ARROW" in the styles group. The buttons will change to arrow buttons, pointng up. 7. Select an alignment other than "up" from the alignment group. The arrow buttons will change their orientation. 8. Select or deselect SWT.BORDER in the styles group. The arrows will change their orientation back to "up". 9. Select a new orientation for the arrows. Then (de)select SWT.BORDER again. Note that the arrows will again change their orientation to "up". Found in: OS: HP-UX 11.11. Eclipse: V2.1 Build Id: 200302061700 (M5), with M5 example plugins.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ButtonTab.java
package org.eclipse.swt.examples.controlexample;
/*
 * (c) Copyright IBM Corp. 2000, 2002.
 * This file is made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 */
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.events.*;
/**
 * <code>ButtonTab</code> is the class that
 * demonstrates SWT buttons.
 */
class ButtonTab extends AlignableTab {