| java.lang.Object org.eclipse.ui.internal.ide.DialogUtil
DialogUtil | public class DialogUtil (Code) | | Utility class to help with dialogs.
Note that a copy of this class exists in the
org.eclipse.ui.internal package.
|
Method Summary | |
public static int | availableRows(Composite parent) Return the number of rows available in the current display using the
current font.
Parameters: parent - The Composite whose Font will be queried. | public static boolean | inRegularFontMode(Composite parent) Return whether or not the font in the parent is the size of a regular
font. | public static void | openError(Shell parent, String title, String message, PartInitException exception) Open an error style dialog for PartInitException by
including any extra information from the nested
CoreException if present. |
availableRows | public static int availableRows(Composite parent)(Code) | | Return the number of rows available in the current display using the
current font.
Parameters: parent - The Composite whose Font will be queried. int The result of the display size divided by the font size. |
inRegularFontMode | public static boolean inRegularFontMode(Composite parent)(Code) | | Return whether or not the font in the parent is the size of a regular
font. Typically used to know if a font is smaller than the High Contrast
Font. This method is used to make layout decisions based on screen space.
Parameters: parent - The Composite whose Font will be queried. boolean. True if there are more than 50 lines of possibletext in the display. |
openError | public static void openError(Shell parent, String title, String message, PartInitException exception)(Code) | | Open an error style dialog for PartInitException by
including any extra information from the nested
CoreException if present.
|
|
|