| |
|
| java.lang.Object org.eclipse.ui.internal.texteditor.SWTUtil
SWTUtil | public class SWTUtil (Code) | | Utility class to simplify access to some SWT resources.
since: 3.3 |
Method Summary | |
public static int | getButtonWidthHint(Button button) Returns a width hint for the given button. | public static void | setButtonDimensionHint(Button button) Sets width and height hint for the button control. |
getButtonWidthHint | public static int getButtonWidthHint(Button button)(Code) | | Returns a width hint for the given button.
Parameters: button - the button the width hint for the button |
setButtonDimensionHint | public static void setButtonDimensionHint(Button button)(Code) | | Sets width and height hint for the button control.
Note: This is a NOP if the button's layout data is not
an instance of GridData .
Parameters: button - the button for which to set the dimension hint |
|
|
|