Bug 144974 [Preferences] TVT3.2:TCT829: DE : Base : Truncation in Ant Preferences Panel
OS : RHEL 3.1 Must fix or not a must fix: NO Build date: 0531 Component name = Base Blocking: no Language: de Bitmap Location: V:\defects\de\ Tester Name: Ruth Nestvold Problem Description: The "Browse..." button is truncated on the Prefences panel Steps: On the menu bar from the main Workbench panel, click Windows > Preference Expand and Select Ant The Browse button on the Ant panel is truncated This article was reassigned from Category:''TVT/Testing''.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/StringButtonFieldEditor.java
package org.eclipse.jface.preference;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.util.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
/**
 * An abstract field editor for a string type preference that presents
 * a string input field with a change button to its right to edit the
 * input field's content. When the user presses the change button, the
 * abstract framework method <code>changePressed()</code> gets called
 * to compute a new string.
 */
public abstract class StringButtonFieldEditor extends StringFieldEditor {
    /**
     * The change button, or <code>null</code> if none
     * (before creation and after disposal).
     */
    private Button changeButton;
    /**
     * The text for the change button, or <code>null</code> if missing.
     */
    private String changeButtonText;