|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.util.WindowUtil
Utilities for windows. There is one utility method here to center the dialog relative to its parent. There are also several utility methods that can be used on controls in a window.
| Constructor Summary | |
WindowUtil()
|
|
| Method Summary | |
static void |
centerDialog(Shell dialogShell,
Shell parentShell)
Center the dialog relative to a parent window. |
static void |
disposeChildren(Composite parent)
Dispose a parent's children |
static void |
doMessageBox(java.lang.String message,
java.lang.String title,
int swtStyle,
Shell shell)
Display a message box |
static GridData |
makeButtonData(Button button)
Returns height and width data in a GridData for the button that was passed in. |
static GridData |
makeFixedButtonData(Button button)
Makes the GridData for a button to be a fixed size, regardless of the contents of the button |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WindowUtil()
| Method Detail |
public static void centerDialog(Shell dialogShell,
Shell parentShell)
dialogShell - contains the dialog to centerparentShell - contains the window to center relative topublic static void disposeChildren(Composite parent)
parent - composite containing children to be disposed.public static GridData makeButtonData(Button button)
button - which has already been made. We'll be making the
GridData for this button, so be sure that the text has already
been set.
public static GridData makeFixedButtonData(Button button)
button - the button control that we'll make the GridData for.
public static void doMessageBox(java.lang.String message,
java.lang.String title,
int swtStyle,
Shell shell)
message - the String message for the message boxtitle - the String title for the message boxswtStyle - the int style for the message boxshell - the Shell for the message box, such as Display.getActive().getShell()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.