| java.lang.Object org.eclipse.ui.internal.dialogs.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.ide 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 result
font (i.e. | 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. | public static String | removeAccel(String label) Removes the '&' accelerator indicator from a label, if any. |
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 result
font (i.e. 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.
|
removeAccel | public static String removeAccel(String label)(Code) | | Removes the '&' accelerator indicator from a label, if any. Also removes
the () accelerators which are used in Asian languages.
|
|
|