|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.util.SWTUtil
public class SWTUtil
Utility class to simplify access to some SWT resources.
Constructor Summary | |
---|---|
SWTUtil()
|
Method Summary | |
---|---|
static int |
getButtonWidthHint(org.eclipse.swt.widgets.Button button)
Returns a width hint for a button control. |
static org.eclipse.swt.widgets.Shell |
getShell(org.eclipse.swt.widgets.Widget widget)
Returns the shell for the given widget. |
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
Returns the standard display to be used. |
static int |
getTableHeightHint(org.eclipse.swt.widgets.Table table,
int rows)
|
static org.eclipse.swt.layout.GridLayout |
newLayoutNoMargins(int columns)
|
static void |
setAccessibilityText(org.eclipse.swt.widgets.Control control,
java.lang.String text)
Adds an accessibility listener returning the given fixed name. |
static void |
setButtonDimensionHint(org.eclipse.swt.widgets.Button button)
Sets width and height hint for the button control. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SWTUtil()
Method Detail |
---|
public static org.eclipse.swt.widgets.Display getStandardDisplay()
public static org.eclipse.swt.widgets.Shell getShell(org.eclipse.swt.widgets.Widget widget)
null
is returned.
widget
- the widget
public static int getButtonWidthHint(org.eclipse.swt.widgets.Button button)
button
- the button
public static void setButtonDimensionHint(org.eclipse.swt.widgets.Button button)
GridData
.
button
- the button for which to set the dimension hintpublic static int getTableHeightHint(org.eclipse.swt.widgets.Table table, int rows)
public static void setAccessibilityText(org.eclipse.swt.widgets.Control control, java.lang.String text)
control
- the control to add the accessibility support totext
- the namepublic static org.eclipse.swt.layout.GridLayout newLayoutNoMargins(int columns)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |