Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseEditBrowseTextControl.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseEditBrowseTextControl.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseEditBrowseTextControl.java
index b2ce60d0a..e4746e622 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseEditBrowseTextControl.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseEditBrowseTextControl.java
@@ -1187,17 +1187,11 @@ public class BaseEditBrowseTextControl extends AbstractDecoratedDialogPageContro
FormToolkit toolkit = getFormToolkit();
Button button = toolkit != null ? toolkit.createButton(parent, null, SWT.PUSH) : new Button(parent, SWT.PUSH);
- // add a whitespace at the beginning and at the end of the button text to make the
- // button visibly broader than the label itself.
- button.setText(formatButtonLabel(getButtonLabel()));
+ button.setText(getButtonLabel());
return button;
}
- protected String formatButtonLabel(String label) {
- return " " + (label != null ? label.trim() : Messages.BaseEditBrowseTextControl_button_label) + " "; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
/**
* Configure the given button control before the control is set visible. Subclasses may use
* this hook to configure the button control for their specific needs and to register any
@@ -1221,7 +1215,7 @@ public class BaseEditBrowseTextControl extends AbstractDecoratedDialogPageContro
// If not yet set, assure that the buttons fill in the available space
if (button.getLayoutData() == null) {
GridData layoutData = new GridData(SWT.FILL, SWT.CENTER, false, false);
- layoutData.widthHint = SWTControlUtil.convertWidthInCharsToPixels(button, formatButtonLabel(getButtonLabel()).length());
+ layoutData.widthHint = SWTControlUtil.convertWidthInCharsToPixels(button, getButtonLabel().length() + 2);
button.setLayoutData(layoutData);
}
}

Back to the top