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
*
     * @return the new string to display, or <code>null</code> to leave the
     *  old string showing
     */
    protected abstract String changePressed();
    /* (non-Javadoc)
     * Method declared on StringFieldEditor (and FieldEditor).
     */
    protected void doFillIntoGrid(Composite parent, int numColumns) {
        super.doFillIntoGrid(parent, numColumns - 1);
        changeButton = getChangeControl(parent);
        GridData gd = new GridData();
        gd.horizontalAlignment = GridData.FILL;
        int widthHint = convertHorizontalDLUsToPixels(changeButton,
                IDialogConstants.BUTTON_WIDTH);
        gd.widthHint = Math.max(widthHint, changeButton.computeSize(
                SWT.DEFAULT, SWT.DEFAULT, true).x);
        changeButton.setLayoutData(gd);
    }
    /**
     * Get the change control. Create it in parent if required.
     * @param parent
     * @return Button
     */
    protected Button getChangeControl(Composite parent) {
        if (changeButton == null) {
            changeButton = new Button(parent, SWT.PUSH);
            if (changeButtonText == null) {
				changeButtonText = JFaceResources.getString("openChange"); 
			}