Package org.eclipse.net4j.util.ui
Class UIUtil
java.lang.Object
org.eclipse.net4j.util.ui.UIUtil
- Author:
- Eike Stepper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TadaptElement(ISelection selection, Class<T> type) LikegetElement(ISelection, Class)except that it attempts to adaptIAdaptables to the requiredtype, if necessary.static <T> List<T>adaptElements(ISelection selection, Class<T> type) LikegetElements(ISelection, Class)except that it attempts to adaptIAdaptables to the requiredtype, if necessary.static voidaddDecorationMargin(Control control) static voidaddDragSupport(StructuredViewer viewer) static voidstatic voidstatic voidcopyToClipboard(Display display, String text) static SafeBrowsercreateBrowser(Composite parent) static GridDatastatic CompositecreateGridComposite(Composite parent, int columns) static GridDatastatic GridDatacreateGridData(boolean grabHorizontal, boolean grabVertical) static GridDatacreateGridData(int horizontalSpan, int verticalSpan) static GridLayoutcreateGridLayout(int columns) static IPasswordCredentialsProviderstatic voidstatic voidstatic voidstatic Imagestatic voidstatic voidforEachChild(Composite composite, Consumer<Control> consumer) static IWorkbenchPagestatic IWorkbenchPartstatic IWorkbenchWindowstatic FontgetBoldFont(Control control) static Displaystatic ObjectgetElement(ISelection selection) static <T> TgetElement(ISelection selection, Class<T> type) static ObjectgetElementIfOne(ISelection selection) getElements(ISelection selection) static <T> List<T>getElements(ISelection selection, Class<T> type) static FontgetItalicFont(Control control) static ShellgetShell()static IWorkbenchstatic Colorstatic <T> TinitResource(Function<Display, T> initializer) static booleanstatic voidpreserveViewerState(Viewer viewer, Runnable runnable) static ColorredColor()static voidrefreshElement(StructuredViewer viewer, Object element, boolean updateLabels) static voidrefreshViewer(Viewer viewer) static voidrunWithProgress(IRunnableWithProgress runnable) static voidselectReveal(Object object) static voidsetIndentation(Control control, int horizontalIndent, int verticalIndent) Adds indentation to the control.static voidsetStatusBarMessage(String message, Image image) Shows a message in the StatusBar.static intsetValidationContext(Control control, ValidationContext context) static voidstatic voidstatic voidupdateElements(StructuredViewer viewer, Object element)
-
Field Details
-
ERROR_LOG_ID
- Since:
- 3.1
- See Also:
-
-
Method Details
-
redColor
- Since:
- 3.12
-
grayColor
- Since:
- 3.12
-
errorImage
- Since:
- 3.12
-
copyToClipboard
- Since:
- 3.1
-
dispose
-
dispose
-
dispose
-
getItalicFont
- Since:
- 3.3
-
getBoldFont
-
getDisplay
-
getShell
- Since:
- 3.5
-
getWorkbench
- Since:
- 2.0
-
getActiveWorkbenchWindow
- Since:
- 2.0
-
getActiveWorkbenchPage
- Since:
- 2.0
-
getActiveWorkbenchPart
- Since:
- 2.0
-
getElementIfOne
- Since:
- 3.0
-
getElement
- Since:
- 2.0
-
getElement
- Since:
- 2.0
-
getElements
- Since:
- 3.5
-
getElements
- Since:
- 2.0
-
adaptElement
LikegetElement(ISelection, Class)except that it attempts to adaptIAdaptables to the requiredtype, if necessary.- Since:
- 3.4
-
adaptElements
LikegetElements(ISelection, Class)except that it attempts to adaptIAdaptables to the requiredtype, if necessary.- Since:
- 3.5
-
setValidationContext
- Since:
- 3.1
-
createInteractiveCredentialsProvider
-
createBrowser
- Since:
- 3.19
-
createGridComposite
-
createGridLayout
-
createGridData
-
createGridData
-
createGridData
- Since:
- 3.4
-
createEmptyGridData
- Since:
- 3.0
-
addDecorationMargin
-
setIndentation
Adds indentation to the control. if indent value is < 0, the control indentation is left unchanged.- Since:
- 2.0
-
initResource
- Since:
- 3.12
-
syncExec
- Since:
- 3.5
-
syncExec
- Since:
- 3.5
-
asyncExec
- Since:
- 3.9
-
asyncExec
- Since:
- 3.9
-
exec
- Since:
- 3.9
-
runWithProgress
- Since:
- 3.3
-
preserveViewerState
- Since:
- 3.3
-
refreshViewer
- Since:
- 2.0
-
refreshElement
- Since:
- 3.3
-
updateElements
- Since:
- 3.5
-
setStatusBarMessage
Shows a message in the StatusBar. Image can be omitted by passing a null parameter- Since:
- 2.0
-
addDragSupport
- Since:
- 3.5
-
isParent
- Since:
- 3.9
-
forEachChild
- Since:
- 3.9
-
selectReveal
- Since:
- 3.10
-