Package com.iizigo
Class ApplicationUI
java.lang.Object
com.iizigo.ApplicationUI
The ApplicationUI instance holds the various images loaded from Image Descriptors and can be used as SWT Images directly, as well as other SWT allocated object such as colors.
- Author:
- Christopher Mindus
- Nested Class SummaryNested Classes
- Field SummaryFieldsModifier and TypeFieldDescription- org.eclipse.swt.graphics.Color- final org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Color- final org.eclipse.swt.widgets.DisplayThe Display.- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- static final org.eclipse.jface.viewers.StyledString.StylerThe error style color for StyledText.- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- final org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- final org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- final org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- final org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- final org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- final org.eclipse.jface.viewers.StyledString.StylerStyler used for Package Names for StyledString's.- org.eclipse.swt.graphics.Color- final org.eclipse.jface.viewers.StyledString.StylerStyler used for Project Names for StyledString's.- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Image- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- final org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color- final org.eclipse.swt.graphics.Color- org.eclipse.swt.graphics.Color
- Method SummaryModifier and TypeMethodDescription- static boolean- addThemeListener- (IThemeListener listener) Call this method to register for theme changes.- static boolean- addThemeListener- (IThemeListener listener, org.eclipse.swt.widgets.Control widget) Call this method to register for theme changes and automatic removal of its listener when the widget is disposed of.- void- applyHeaderGradient- (org.eclipse.swt.widgets.Composite c) Applies a gradient on a composite in light mode, and in dark mode, just use the default widget background.- static int- autoScaleDown- (int size) Auto-scales down for high DPI displays.- static int- autoScaleUp- (int size) Auto-scales up for high DPI displays.- void- center- (org.eclipse.swt.widgets.Shell shell, int w, int h) Centers the window on screen over its parent and sets the size.- voidCenters the window on screen over its parent and sets the size.- voidCenters the window on screen over its parent and sets the size and image.- voidCenters the window on screen over its parent and sets the size and image.- voidCenters the window on screen over its parent and sets the size and image.- int- cx- (int w) Calculates the width of an element with the dialog font.- int- cy- (int h) Calculates the height of an element with the dialog font.- intGets the height of each item for properties.- org.eclipse.swt.graphics.FontGets a bold font for a standard component.- org.eclipse.swt.graphics.Color- getColor- (int rgb) Gets a color and adds it to be disposed of when the plug-in exits.- org.eclipse.swt.graphics.Color- getColor- (int r, int g, int b) Gets a color and adds it to be disposed of when the plug-in exits.- org.eclipse.swt.graphics.Image- getDecoratedImage- (org.eclipse.swt.graphics.Image image, int errorLevel) Creates or gets a (perhaps) decorated image for warning/errors.- org.eclipse.swt.graphics.Image- getErrorImage- (int level) Gets the image for the property error level 0=INFO, 1=WARNING, 2=ERROR.- org.eclipse.swt.graphics.Image- getErrorImage- (IPropErrorItem errorItem) Gets the image for the property error severity level.- org.eclipse.swt.graphics.Image- getErrorImageDecoration- (int level) Gets the small decoration images for the property error levels 1=WARNING, 2=ERROR.- org.eclipse.swt.graphics.FontGets the standard fixed font.- org.eclipse.swt.graphics.FontGets a font and adds it to be disposed of when the plug-in exits.- org.eclipse.swt.graphics.FontGets a heading font.- org.eclipse.swt.graphics.Image- getImage- (DesignerProp dp) Gets the Image for a DesignerProp instance.- org.eclipse.swt.graphics.ImageGets an Image for a property.- <GPROP extends GProp<?>>
 org.eclipse.swt.graphics.ImageGets an Image for a property class.- org.eclipse.swt.graphics.ImageGets an Image from a file name.- org.eclipse.swt.graphics.Image- getImage- (org.eclipse.jface.resource.ImageDescriptor descriptor) Loads the image for an Image Descriptor and caches it.- static ApplicationUIGets the instance of the ApplicationUI.- org.eclipse.swt.graphics.FontGets an italic font for a standard component.- org.eclipse.swt.graphics.Image- getNewImage- (org.eclipse.swt.graphics.Image image) Creates a "New item" image from an existing image.- org.eclipse.jface.resource.ImageDescriptor- getNewImageDescriptor- (org.eclipse.swt.graphics.Image image) Creates a "New item" image descriptor from an existing image.- org.eclipse.swt.graphics.FontGets the default dialog normal font.- getTheme()Gets the current theme.- org.eclipse.swt.graphics.Image- getWizardImage- (org.eclipse.swt.graphics.Image image) Creates a "wizard" image from an existing image.- org.eclipse.swt.graphics.Image- getWorkBenchImage- (String name) Gets a Workbench Shared image by a name.- booleanGets the flag not to use scaling because it's automatic.- booleanChecks if a "dark" mode is used, e.g.- static booleanChecks if the ApplicationUI instance is created.- void- loadWorkBenchImages- (org.eclipse.swt.widgets.ToolItem item, String name) Loads a set of workbench Image's from its symbolic names defined in org.eclipse.ui.ISharedImages and assigns it to the ToolItem.- void- loadWorkBenchImages- (org.eclipse.swt.widgets.ToolItem item, String nameEnabled, String nameDisabled) Loads a set of workbench Image's from its symbolic names defined in org.eclipse.ui.ISharedImages and assigns it to the ToolItem.- boolean- removeImage- (org.eclipse.swt.graphics.Image image) Removes an image and its image descriptor once loaded.- static boolean- removeThemeListener- (IThemeListener listener) Call this method to register for theme changes.- int- s10()Gets the spacing of 5 "pixels" depending on font scaling.- int- s15()Gets the spacing of 5 "pixels" depending on font scaling.- int- s2()Gets the spacing of 2 "pixels" depending on font scaling.- int- s20()Gets the spacing of 5 "pixels" depending on font scaling.- int- s4()Gets the spacing of 4 "pixels" depending on font scaling.- int- s5()Gets the spacing of 5 "pixels" depending on font scaling.- int- s8()Gets the spacing of 8 "pixels" depending on font scaling.
- Field Details- ERROR_STYLERpublic static final org.eclipse.jface.viewers.StyledString.Styler ERROR_STYLERThe error style color for StyledText.
- displaypublic final org.eclipse.swt.widgets.Display displayThe Display.
- whitepublic final org.eclipse.swt.graphics.Color white
- blackpublic final org.eclipse.swt.graphics.Color black
- transparentpublic final org.eclipse.swt.graphics.Color transparent
- graypublic final org.eclipse.swt.graphics.Color gray
- borderpublic org.eclipse.swt.graphics.Color border
- foregroundpublic org.eclipse.swt.graphics.Color foreground
- backgroundpublic org.eclipse.swt.graphics.Color background
- widgetBackgroundpublic org.eclipse.swt.graphics.Color widgetBackground
- headerBackgroundpublic org.eclipse.swt.graphics.Color headerBackground
- listSelectionForegroundpublic org.eclipse.swt.graphics.Color listSelectionForeground
- listSelectionBackgroundpublic org.eclipse.swt.graphics.Color listSelectionBackground
- disabledForegroundpublic org.eclipse.swt.graphics.Color disabledForeground
- lightShadowpublic org.eclipse.swt.graphics.Color lightShadow
- darkShadowpublic org.eclipse.swt.graphics.Color darkShadow
- tooltipBackgroundpublic org.eclipse.swt.graphics.Color tooltipBackground
- entryFieldFocusBackgroundpublic org.eclipse.swt.graphics.Color entryFieldFocusBackground
- entryFieldBackgroundpublic org.eclipse.swt.graphics.Color entryFieldBackground
- entryFieldForegroundpublic org.eclipse.swt.graphics.Color entryFieldForeground
- errorBackgroundpublic org.eclipse.swt.graphics.Color errorBackground
- errorBackgroundCursorpublic org.eclipse.swt.graphics.Color errorBackgroundCursor
- errorForegroundpublic org.eclipse.swt.graphics.Color errorForeground
- warningBackgroundpublic org.eclipse.swt.graphics.Color warningBackground
- warningBackgroundCursorpublic org.eclipse.swt.graphics.Color warningBackgroundCursor
- warningForegroundpublic org.eclipse.swt.graphics.Color warningForeground
- infoBackgroundpublic org.eclipse.swt.graphics.Color infoBackground
- infoBackgroundCursorpublic org.eclipse.swt.graphics.Color infoBackgroundCursor
- infoForegroundpublic org.eclipse.swt.graphics.Color infoForeground
- greenForegroundpublic org.eclipse.swt.graphics.Color greenForeground
- greenBackgroundpublic org.eclipse.swt.graphics.Color greenBackground
- selectedPropBackgroundpublic org.eclipse.swt.graphics.Color selectedPropBackground
- propertyValueWarningpublic org.eclipse.swt.graphics.Color propertyValueWarning
- propertyValueErrorpublic org.eclipse.swt.graphics.Color propertyValueError
- propertyValueUndefinedpublic org.eclipse.swt.graphics.Color propertyValueUndefined
- propertyValueDefinedpublic org.eclipse.swt.graphics.Color propertyValueDefined
- propertyValueInheritedpublic org.eclipse.swt.graphics.Color propertyValueInherited
- propertyValueOverriddenpublic org.eclipse.swt.graphics.Color propertyValueOverridden
- paleLinepublic org.eclipse.swt.graphics.Color paleLine
- propTreeLinepublic org.eclipse.swt.graphics.Color propTreeLine
- propEditorBackgroundpublic org.eclipse.swt.graphics.Color propEditorBackground
- propEditorIconBackgroundpublic org.eclipse.swt.graphics.Color propEditorIconBackground
- packageNameStylerpublic final org.eclipse.jface.viewers.StyledString.Styler packageNameStylerStyler used for Package Names for StyledString's.
- projectNameStylerpublic final org.eclipse.jface.viewers.StyledString.Styler projectNameStylerStyler used for Project Names for StyledString's.
- imageFilepublic final org.eclipse.swt.graphics.Image imageFile
- imageErrorpublic final org.eclipse.swt.graphics.Image imageError
- imageWarningpublic final org.eclipse.swt.graphics.Image imageWarning
- imageInformationpublic final org.eclipse.swt.graphics.Image imageInformation
- imageFolderpublic org.eclipse.swt.graphics.Image imageFolder
- imageFolderSelectorpublic org.eclipse.swt.graphics.Image imageFolderSelector
- imageInformationCirclepublic org.eclipse.swt.graphics.Image imageInformationCircle
- imageEditPenpublic org.eclipse.swt.graphics.Image imageEditPen
- imageEditPropertiespublic org.eclipse.swt.graphics.Image imageEditProperties
- imageGotoInputpublic org.eclipse.swt.graphics.Image imageGotoInput
- imageIizipublic org.eclipse.swt.graphics.Image imageIizi
- imageModulepublic org.eclipse.swt.graphics.Image imageModule
- imagePanelpublic org.eclipse.swt.graphics.Image imagePanel
- imageVirtualSpacepublic org.eclipse.swt.graphics.Image imageVirtualSpace
- imageInfopublic org.eclipse.swt.graphics.Image imageInfo
- imageWizardpublic org.eclipse.swt.graphics.Image imageWizard
- imageExtendspublic org.eclipse.swt.graphics.Image imageExtends
- imageAddpublic org.eclipse.swt.graphics.Image imageAdd
- imageShowpublic org.eclipse.swt.graphics.Image imageShow
- imageMorepublic org.eclipse.swt.graphics.Image imageMore
- imageMore16public org.eclipse.swt.graphics.Image imageMore16
- imagePropertiespublic org.eclipse.swt.graphics.Image imageProperties
- imageExpandAllpublic org.eclipse.swt.graphics.Image imageExpandAll
- imageCollapseAllpublic org.eclipse.swt.graphics.Image imageCollapseAll
- imageSortA2Zpublic org.eclipse.swt.graphics.Image imageSortA2Z
- imageSortZ2Apublic org.eclipse.swt.graphics.Image imageSortZ2A
- imageSortByTypepublic org.eclipse.swt.graphics.Image imageSortByType
- imageShowTreepublic org.eclipse.swt.graphics.Image imageShowTree
- imageShowInheritedpublic org.eclipse.swt.graphics.Image imageShowInherited
- imageLinkPropspublic org.eclipse.swt.graphics.Image imageLinkProps
- imageHideValuespublic org.eclipse.swt.graphics.Image imageHideValues
- imageShowInEditorpublic org.eclipse.swt.graphics.Image imageShowInEditor
- imageErrorDecorationpublic org.eclipse.swt.graphics.Image imageErrorDecoration
- imageWarningDecorationpublic org.eclipse.swt.graphics.Image imageWarningDecoration
- imageConvertpublic org.eclipse.swt.graphics.Image imageConvert
- imageRichTextpublic org.eclipse.swt.graphics.Image imageRichText
- imageRawTextpublic org.eclipse.swt.graphics.Image imageRawText
- imageTagProcessingpublic org.eclipse.swt.graphics.Image imageTagProcessing
- imageTextTablepublic org.eclipse.swt.graphics.Image imageTextTable
- imageTranslatepublic org.eclipse.swt.graphics.Image imageTranslate
- imageImportpublic org.eclipse.swt.graphics.Image imageImport
- imageOpenpublic org.eclipse.swt.graphics.Image imageOpen
- imageMovePropspublic org.eclipse.swt.graphics.Image imageMoveProps
- imageTextOKpublic org.eclipse.swt.graphics.Image imageTextOK
- imageTextErrorpublic org.eclipse.swt.graphics.Image imageTextError
- imageFormatPlainpublic org.eclipse.swt.graphics.Image imageFormatPlain
- imageFormatPlainTagpublic org.eclipse.swt.graphics.Image imageFormatPlainTag
- imageFormatHTMLpublic org.eclipse.swt.graphics.Image imageFormatHTML
- imageFormatHTMLTagpublic org.eclipse.swt.graphics.Image imageFormatHTMLTag
- imageInsertTextIDpublic org.eclipse.swt.graphics.Image imageInsertTextID
- imageInsertTextIDDisabledpublic org.eclipse.swt.graphics.Image imageInsertTextIDDisabled
- imageInsertTextVSpublic org.eclipse.swt.graphics.Image imageInsertTextVS
- imageInsertTextVSDisabledpublic org.eclipse.swt.graphics.Image imageInsertTextVSDisabled
- imageInsertHyperlinkpublic org.eclipse.swt.graphics.Image imageInsertHyperlink
- imageInsertHyperlinkDisabledpublic org.eclipse.swt.graphics.Image imageInsertHyperlinkDisabled
- imageRemoveHyperlinkpublic org.eclipse.swt.graphics.Image imageRemoveHyperlink
- imageRemoveHyperlinkDisabledpublic org.eclipse.swt.graphics.Image imageRemoveHyperlinkDisabled
- imageInsertImagepublic org.eclipse.swt.graphics.Image imageInsertImage
- imageInsertImageDisabledpublic org.eclipse.swt.graphics.Image imageInsertImageDisabled
- imageMoveUppublic org.eclipse.swt.graphics.Image imageMoveUp
- imageMoveDownpublic org.eclipse.swt.graphics.Image imageMoveDown
- imageMoveToppublic org.eclipse.swt.graphics.Image imageMoveTop
- imageMoveBottompublic org.eclipse.swt.graphics.Image imageMoveBottom
- imageUIPanelPartpublic org.eclipse.swt.graphics.Image imageUIPanelPart
- imageUIDialogpublic org.eclipse.swt.graphics.Image imageUIDialog
- imageUIAccordionpublic org.eclipse.swt.graphics.Image imageUIAccordion
- imageUIContainerpublic org.eclipse.swt.graphics.Image imageUIContainer
- imageUIContextMenupublic org.eclipse.swt.graphics.Image imageUIContextMenu
- imageUITitlePanepublic org.eclipse.swt.graphics.Image imageUITitlePane
- imageUIMenuBarpublic org.eclipse.swt.graphics.Image imageUIMenuBar
- imageUIMenupublic org.eclipse.swt.graphics.Image imageUIMenu
- imageUITabContainerpublic org.eclipse.swt.graphics.Image imageUITabContainer
- imageUISwapContainerpublic org.eclipse.swt.graphics.Image imageUISwapContainer
- imageUILayoutspublic org.eclipse.swt.graphics.Image imageUILayouts
- imageUIAbsoluteLayoutpublic org.eclipse.swt.graphics.Image imageUIAbsoluteLayout
- imageUIAccordionLayoutpublic org.eclipse.swt.graphics.Image imageUIAccordionLayout
- imageUIBorderLayoutpublic org.eclipse.swt.graphics.Image imageUIBorderLayout
- imageUIFlexLayoutpublic org.eclipse.swt.graphics.Image imageUIFlexLayout
- imageUIGridLayoutpublic org.eclipse.swt.graphics.Image imageUIGridLayout
- imageUITabLayoutpublic org.eclipse.swt.graphics.Image imageUITabLayout
- imageUISwapLayoutpublic org.eclipse.swt.graphics.Image imageUISwapLayout
- imageSelectorpublic org.eclipse.swt.graphics.Image imageSelector
- imageSelectorspublic org.eclipse.swt.graphics.Image imageSelectors
- imageStylespublic org.eclipse.swt.graphics.Image imageStyles
- imageStateStylespublic org.eclipse.swt.graphics.Image imageStateStyles
- imageAssetpublic org.eclipse.swt.graphics.Image imageAsset
- imageDevicePortraitpublic org.eclipse.swt.graphics.Image imageDevicePortrait
- imageDeviceLandscapepublic org.eclipse.swt.graphics.Image imageDeviceLandscape
- imageUIComponentpublic org.eclipse.swt.graphics.Image imageUIComponent
- imageUIComponentspublic org.eclipse.swt.graphics.Image imageUIComponents
- imageThemespublic org.eclipse.swt.graphics.Image imageThemes
- imageThemesErrorpublic org.eclipse.swt.graphics.Image imageThemesError
- imageUIButtonpublic org.eclipse.swt.graphics.Image imageUIButton
- imageUICalendarpublic org.eclipse.swt.graphics.Image imageUICalendar
- imageUICheckBoxpublic org.eclipse.swt.graphics.Image imageUICheckBox
- imageUIComboBoxpublic org.eclipse.swt.graphics.Image imageUIComboBox
- imageUIDateTimepublic org.eclipse.swt.graphics.Image imageUIDateTime
- imageUIEmptypublic org.eclipse.swt.graphics.Image imageUIEmpty
- imageUILabelpublic org.eclipse.swt.graphics.Image imageUILabel
- imageUIOutputpublic org.eclipse.swt.graphics.Image imageUIOutput
- imageUIMenuItempublic org.eclipse.swt.graphics.Image imageUIMenuItem
- imageUICheckedMenuItempublic org.eclipse.swt.graphics.Image imageUICheckedMenuItem
- imageUIRadioMenuItempublic org.eclipse.swt.graphics.Image imageUIRadioMenuItem
- imageUIMenuSeparatorpublic org.eclipse.swt.graphics.Image imageUIMenuSeparator
- imageUIProgresspublic org.eclipse.swt.graphics.Image imageUIProgress
- imageUIRadioButtonpublic org.eclipse.swt.graphics.Image imageUIRadioButton
- imageUIGaugepublic org.eclipse.swt.graphics.Image imageUIGauge
- imageUISliderpublic org.eclipse.swt.graphics.Image imageUISlider
- imageUISpinnerpublic org.eclipse.swt.graphics.Image imageUISpinner
- imageUITextpublic org.eclipse.swt.graphics.Image imageUIText
- imageUITextAreapublic org.eclipse.swt.graphics.Image imageUITextArea
- imageUIPickerpublic org.eclipse.swt.graphics.Image imageUIPicker
- imageUIPickerSlotpublic org.eclipse.swt.graphics.Image imageUIPickerSlot
- imageUITablepublic org.eclipse.swt.graphics.Image imageUITable
- imageUITableColumnpublic org.eclipse.swt.graphics.Image imageUITableColumn
- imageUIChartpublic org.eclipse.swt.graphics.Image imageUIChart
- imageUIImagepublic org.eclipse.swt.graphics.Image imageUIImage
- imageUIImage2public org.eclipse.swt.graphics.Image imageUIImage2
- imageUICalendarListpublic org.eclipse.swt.graphics.Image imageUICalendarList
- imageUICalendarEventpublic org.eclipse.swt.graphics.Image imageUICalendarEvent
- imageUIMappublic org.eclipse.swt.graphics.Image imageUIMap
- imageUIMapMarkerspublic org.eclipse.swt.graphics.Image imageUIMapMarkers
- imageUIMapMarkerpublic org.eclipse.swt.graphics.Image imageUIMapMarker
- imageMUIButtonpublic org.eclipse.swt.graphics.Image imageMUIButton
- imageMUICheckBoxpublic org.eclipse.swt.graphics.Image imageMUICheckBox
- imageMUIRadioButtonpublic org.eclipse.swt.graphics.Image imageMUIRadioButton
- imageMUIListpublic org.eclipse.swt.graphics.Image imageMUIList
- imageMUIHeadingpublic org.eclipse.swt.graphics.Image imageMUIHeading
- imageMUITabBarpublic org.eclipse.swt.graphics.Image imageMUITabBar
- imageMUIProgresspublic org.eclipse.swt.graphics.Image imageMUIProgress
- imageMUIProgressIndpublic org.eclipse.swt.graphics.Image imageMUIProgressInd
- imageMUISliderpublic org.eclipse.swt.graphics.Image imageMUISlider
- imageMUISwitchpublic org.eclipse.swt.graphics.Image imageMUISwitch
- imageMUIListHeaderpublic org.eclipse.swt.graphics.Image imageMUIListHeader
- imageMUISimpleListItempublic org.eclipse.swt.graphics.Image imageMUISimpleListItem
- imageVSComponentpublic org.eclipse.swt.graphics.Image imageVSComponent
- imageVSTablepublic org.eclipse.swt.graphics.Image imageVSTable
- imageVSColumnpublic org.eclipse.swt.graphics.Image imageVSColumn
- imageVSRowpublic org.eclipse.swt.graphics.Image imageVSRow
- imageVSFieldpublic org.eclipse.swt.graphics.Image imageVSField
- imageVSGrouppublic org.eclipse.swt.graphics.Image imageVSGroup
- imageVSCellpublic org.eclipse.swt.graphics.Image imageVSCell
- imageVSActionpublic org.eclipse.swt.graphics.Image imageVSAction
- imageVSActionReferencepublic org.eclipse.swt.graphics.Image imageVSActionReference
- imageActionpublic org.eclipse.swt.graphics.Image imageAction
- imageActionspublic org.eclipse.swt.graphics.Image imageActions
- imageActionReferencepublic org.eclipse.swt.graphics.Image imageActionReference
- imageVSTypepublic org.eclipse.swt.graphics.Image imageVSType
- imageVSMessagepublic org.eclipse.swt.graphics.Image imageVSMessage
- imageVSNamepublic org.eclipse.swt.graphics.Image imageVSName
- imageVSValuepublic org.eclipse.swt.graphics.Image imageVSValue
- imageVSParticipantpublic org.eclipse.swt.graphics.Image imageVSParticipant
- imageVSParticipantspublic org.eclipse.swt.graphics.Image imageVSParticipants
- imageVSStatepublic org.eclipse.swt.graphics.Image imageVSState
- imageVSReferencepublic org.eclipse.swt.graphics.Image imageVSReference
- imageDescriptionpublic org.eclipse.swt.graphics.Image imageDescription
- imageCNPropertypublic org.eclipse.swt.graphics.Image imageCNProperty
- imageActorspublic org.eclipse.swt.graphics.Image imageActors
- imageConnectionsInpublic org.eclipse.swt.graphics.Image imageConnectionsIn
- imageConnectionsOutpublic org.eclipse.swt.graphics.Image imageConnectionsOut
- imageConnectionsOneToManypublic org.eclipse.swt.graphics.Image imageConnectionsOneToMany
- imageConnectionsManyToOnepublic org.eclipse.swt.graphics.Image imageConnectionsManyToOne
- imageClearpublic org.eclipse.swt.graphics.Image imageClear
- imageClearHoverpublic org.eclipse.swt.graphics.Image imageClearHover
- imageExpandedpublic org.eclipse.swt.graphics.Image imageExpanded
- imageExpandedHoverpublic org.eclipse.swt.graphics.Image imageExpandedHover
- imageExpandedWarningpublic org.eclipse.swt.graphics.Image imageExpandedWarning
- imageExpandedWarningHoverpublic org.eclipse.swt.graphics.Image imageExpandedWarningHover
- imageExpandedErrorpublic org.eclipse.swt.graphics.Image imageExpandedError
- imageExpandedErrorHoverpublic org.eclipse.swt.graphics.Image imageExpandedErrorHover
- imageCollapsedpublic org.eclipse.swt.graphics.Image imageCollapsed
- imageCollapsedHoverpublic org.eclipse.swt.graphics.Image imageCollapsedHover
- imageCollapsedWarningpublic org.eclipse.swt.graphics.Image imageCollapsedWarning
- imageCollapsedWarningHoverpublic org.eclipse.swt.graphics.Image imageCollapsedWarningHover
- imageCollapsedErrorpublic org.eclipse.swt.graphics.Image imageCollapsedError
- imageCollapsedErrorHoverpublic org.eclipse.swt.graphics.Image imageCollapsedErrorHover
- imageUndefinedpublic org.eclipse.swt.graphics.Image imageUndefined
- imageUndefinedHoverpublic org.eclipse.swt.graphics.Image imageUndefinedHover
- imageMissingpublic org.eclipse.swt.graphics.Image imageMissing
- imageDefinedpublic org.eclipse.swt.graphics.Image imageDefined
- imageDefinedHoverpublic org.eclipse.swt.graphics.Image imageDefinedHover
- imageDefinedWarningpublic org.eclipse.swt.graphics.Image imageDefinedWarning
- imageDefinedWarningHoverpublic org.eclipse.swt.graphics.Image imageDefinedWarningHover
- imageDefinedErrorpublic org.eclipse.swt.graphics.Image imageDefinedError
- imageDefinedErrorHoverpublic org.eclipse.swt.graphics.Image imageDefinedErrorHover
- imagePluspublic org.eclipse.swt.graphics.Image imagePlus
- imagePlusHoverpublic org.eclipse.swt.graphics.Image imagePlusHover
- imageMinuspublic org.eclipse.swt.graphics.Image imageMinus
- imageMinusHoverpublic org.eclipse.swt.graphics.Image imageMinusHover
- imageCheckedpublic org.eclipse.swt.graphics.Image imageChecked
- imageUncheckedpublic org.eclipse.swt.graphics.Image imageUnchecked
- imageTextpublic org.eclipse.swt.graphics.Image imageText
- imageTextHoverpublic org.eclipse.swt.graphics.Image imageTextHover
- imageTextTagpublic org.eclipse.swt.graphics.Image imageTextTag
- imageTextTagHoverpublic org.eclipse.swt.graphics.Image imageTextTagHover
- imageHTMLpublic org.eclipse.swt.graphics.Image imageHTML
- imageHTMLHoverpublic org.eclipse.swt.graphics.Image imageHTMLHover
- imageHTMLTagpublic org.eclipse.swt.graphics.Image imageHTMLTag
- imageHTMLTagHoverpublic org.eclipse.swt.graphics.Image imageHTMLTagHover
- imageHoverButtonpublic org.eclipse.swt.graphics.Image imageHoverButton
- imageDownButtonpublic org.eclipse.swt.graphics.Image imageDownButton
- imageModulePackagepublic org.eclipse.swt.graphics.Image imageModulePackage
- imageModulePackageEmptypublic org.eclipse.swt.graphics.Image imageModulePackageEmpty
- imageModulePackageNameErrorpublic org.eclipse.swt.graphics.Image imageModulePackageNameError
- imageImageDefinitionpublic org.eclipse.swt.graphics.Image imageImageDefinition
- imageFontFacespublic org.eclipse.swt.graphics.Image imageFontFaces
- imageFontIconsDefinitionpublic org.eclipse.swt.graphics.Image imageFontIconsDefinition
- imageFontIconDefinitionpublic org.eclipse.swt.graphics.Image imageFontIconDefinition
- imageFontFilespublic org.eclipse.swt.graphics.Image imageFontFiles
- imageFontFilepublic org.eclipse.swt.graphics.Image imageFontFile
- imageSingleImagepublic org.eclipse.swt.graphics.Image imageSingleImage
- imageMultipleImagespublic org.eclipse.swt.graphics.Image imageMultipleImages
- imageStyledImagepublic org.eclipse.swt.graphics.Image imageStyledImage
- imageImageLocationpublic org.eclipse.swt.graphics.Image imageImageLocation
- imageImageResolutionpublic org.eclipse.swt.graphics.Image imageImageResolution
- imageImageStylepublic org.eclipse.swt.graphics.Image imageImageStyle
- imageSVGDefinitionpublic org.eclipse.swt.graphics.Image imageSVGDefinition
- imageClasspublic org.eclipse.swt.graphics.Image imageClass
- imageJavaMethodInstancepublic org.eclipse.swt.graphics.Image imageJavaMethodInstance
- imageJavaMethodStaticpublic org.eclipse.swt.graphics.Image imageJavaMethodStatic
- imageJavaMethodInstanceLargepublic org.eclipse.swt.graphics.Image imageJavaMethodInstanceLarge
- imageJavaMethodStaticLargepublic org.eclipse.swt.graphics.Image imageJavaMethodStaticLarge
- imageJavaActionActorpublic org.eclipse.swt.graphics.Image imageJavaActionActor
- imageNewFieldActorpublic org.eclipse.swt.graphics.Image imageNewFieldActor
- imageNewActionActorpublic org.eclipse.swt.graphics.Image imageNewActionActor
- checkBoxCheckedpublic org.eclipse.swt.graphics.Image checkBoxChecked
- checkBoxUncheckedpublic org.eclipse.swt.graphics.Image checkBoxUnchecked
- checkBoxCheckedDisabledpublic org.eclipse.swt.graphics.Image checkBoxCheckedDisabled
- checkBoxUncheckedDisabledpublic org.eclipse.swt.graphics.Image checkBoxUncheckedDisabled
- radioButtonSelectedpublic org.eclipse.swt.graphics.Image radioButtonSelected
- radioButtonUnselectedpublic org.eclipse.swt.graphics.Image radioButtonUnselected
- radioButtonSelectedDisabledpublic org.eclipse.swt.graphics.Image radioButtonSelectedDisabled
- radioButtonUnselectedDisabledpublic org.eclipse.swt.graphics.Image radioButtonUnselectedDisabled
- deviceCastpublic org.eclipse.swt.graphics.Image deviceCast
- deviceCastDisabledpublic org.eclipse.swt.graphics.Image deviceCastDisabled
 
- Method Details- autoScaleDownpublic static int autoScaleDown- (int size) Auto-scales down for high DPI displays.- Parameters:
- size- Value to scale down.
- Returns:
- The scaled value if supported, otherwise the same value.
 
- autoScaleUppublic static int autoScaleUp- (int size) Auto-scales up for high DPI displays.- Parameters:
- size- Value to scale up.
- Returns:
- The scaled value if supported, otherwise the same value.
 
- addThemeListenerCall this method to register for theme changes.- Parameters:
- listener- The listener.
- Returns:
- true if the listener was added, false otherwise.
- Throws:
- NullPointerException- If the listener is- null.
 
- addThemeListenerpublic static boolean addThemeListener- (IThemeListener listener, org.eclipse.swt.widgets.Control widget) Call this method to register for theme changes and automatic removal of its listener when the widget is disposed of.- Parameters:
- listener- The listener.
- widget- The widget or container to listen to for dispose.
- Returns:
- true if the listener was added, false otherwise.
- Throws:
- NullPointerException- If the listener is- null.
 
- removeThemeListenerCall this method to register for theme changes.- Parameters:
- listener- The listener.
- Returns:
- true if the listener was removed, false otherwise.
- Throws:
- NullPointerException- If the listener is- null.
 
- getInstanceGets the instance of the ApplicationUI. The first time this is done, it must be from the SWT thread, otherwise an InternalError is thrown.- Returns:
- The singleton instance of the ApplicationUI.
 
- isInstanceCreatedpublic static boolean isInstanceCreated()Checks if the ApplicationUI instance is created.- Returns:
- true if ApplicationUI is created or not.
 
- isAutoScaledpublic boolean isAutoScaled()Gets the flag not to use scaling because it's automatic.- Returns:
- true if Eclipse and SWT automatically adjust values to scale, false otherwise.
 
- getThemeGets the current theme.- Returns:
- The current theme.
 
- isDarkModepublic boolean isDarkMode()Checks if a "dark" mode is used, e.g. using- ApplicationUI.Theme.DARK. In the future, it could be other dark themes, but right now, "there can be only one"!- Returns:
- The flag, generally affecting images and/or colors.
 
- getColorpublic org.eclipse.swt.graphics.Color getColor- (int rgb) Gets a color and adds it to be disposed of when the plug-in exits. If the color has been created previously, that one is returned. This call must be done from the SWT thread.- Parameters:
- rgb- The RGB color value between 0x000000 and 0xFFFFFF.
- Returns:
- The new Color instance, or a cached one.
 
- getColorpublic org.eclipse.swt.graphics.Color getColor- (int r, int g, int b) Gets a color and adds it to be disposed of when the plug-in exits. If the color has been created previously, that one is returned. This call must be done from the SWT thread.- Parameters:
- r- The red color 0-255.
- g- The green color 0-255.
- b- The blue color 0-255.
- Returns:
- The new Color instance, or a cached one.
 
- getFontGets a font and adds it to be disposed of when the plug-in exits. If the font has been created previously, the same font is returned. This call must be done from the SWT thread.- Parameters:
- name- The name of the font.
- height- The height of the font in pixels.
- style- The style of the font.
- Returns:
- A new of cached font instance.
 
- getImageGets an Image from a file name.- Parameters:
- fileName- The file name loads a descriptor from the "icons" folder.
- Returns:
- A new or cached image of the file name.
 
- getImagepublic org.eclipse.swt.graphics.Image getImage- (org.eclipse.jface.resource.ImageDescriptor descriptor) Loads the image for an Image Descriptor and caches it. It will be disposed of when the plug-in exits.- Parameters:
- descriptor- The Image Descriptor or null if none.
- Returns:
- The image created, null for none or when Image Descriptor is null.
 
- removeImagepublic boolean removeImage- (org.eclipse.swt.graphics.Image image) Removes an image and its image descriptor once loaded.- Parameters:
- image- The image to remove.
- Returns:
- true if the image was removed, false otherwise.
 
- getDecoratedImagepublic org.eclipse.swt.graphics.Image getDecoratedImage- (org.eclipse.swt.graphics.Image image, int errorLevel) Creates or gets a (perhaps) decorated image for warning/errors. Error level is the same as IMarker.SEVERITY_*.- Parameters:
- image- The image to decorate.
- errorLevel- 0=no decoration, 1=warning, 2=error.
- Returns:
- The (perhaps) decorated image. The image is cached in order to reuse the decoration for that image.
 
- getImageGets an Image for a property.- Parameters:
- property- The property instance or null for none.
- Returns:
- The Image or null for none or property instance is null.
 
- getImageGets an Image for a property class.- Type Parameters:
- GPROP- The GProperty from the property class.
- Parameters:
- propertyClass- The property class.
- Returns:
- The Image Descriptor or null for none.
 
- getImageGets the Image for a DesignerProp instance.- Parameters:
- dp- The Designer property instance.
- Returns:
- The Image, or null if dpis null.
 
- getErrorImageGets the image for the property error severity level.- Parameters:
- errorItem- An instance of an error item.
- Returns:
- The cached image for the severity in question, null for no image.
 
- getErrorImagepublic org.eclipse.swt.graphics.Image getErrorImage- (int level) Gets the image for the property error level 0=INFO, 1=WARNING, 2=ERROR.- Parameters:
- level- The error level (0-2).
- Returns:
- The cached image for the severity, or null if the level is not 0-2.
 
- getErrorImageDecorationpublic org.eclipse.swt.graphics.Image getErrorImageDecoration- (int level) Gets the small decoration images for the property error levels 1=WARNING, 2=ERROR.- Parameters:
- level- The error level (1-2).
- Returns:
- The cached image for the severity, or null if the level is not 1-2.
 
- getWorkBenchImageGets a Workbench Shared image by a name.- Parameters:
- name- The name defined in org.eclipse.ui.ISharedImages.
- Returns:
- The cached image, or null if not found.
 
- loadWorkBenchImagesLoads a set of workbench Image's from its symbolic names defined in org.eclipse.ui.ISharedImages and assigns it to the ToolItem. The "_DISABLED" image will be loaded and used if defined.- Parameters:
- item- The tool bar item.
- name- The name of the image.
 
- applyHeaderGradientpublic void applyHeaderGradient- (org.eclipse.swt.widgets.Composite c) Applies a gradient on a composite in light mode, and in dark mode, just use the default widget background.- Parameters:
- c- The composite.
 
- centerpublic void center- (org.eclipse.swt.widgets.Shell shell, int w, int h) Centers the window on screen over its parent and sets the size.- Parameters:
- shell- The window shell.
- w- Width of window, zero for none, negative not to scale.
- h- Height of window, zero for none, negative not to scale.
 
- centerCenters the window on screen over its parent and sets the size and image.- Parameters:
- shell- The window shell.
- image- The image for the dialog relative the icon directory.
- w- Width of window, zero for none, negative not to scale.
- h- Height of window, zero for none, negative not to scale.
 
- centerCenters the window on screen over its parent and sets the size. The dialog size is kept to restore next time it's opened.- Parameters:
- shell- The window shell.
- clazz- The class to remember the size of the dialog for, null for none.
- w- Width of window, zero for none, negative not to scale.
- h- Height of window, zero for none, negative not to scale.
 
- centerCenters the window on screen over its parent and sets the size and image. The dialog size is kept to restore next time it's opened.- Parameters:
- shell- The window shell.
- clazz- The class to remember the size of the dialog for, null for none.
- image- The image for the dialog relative the icon directory, null for none.
- w- Width of window, zero for none, negative not to scale.
- h- Height of window, zero for none, negative not to scale.
 
- centerpublic void center- (org.eclipse.swt.widgets.Shell shell, String className, String image, int w, int h) Centers the window on screen over its parent and sets the size and image. The dialog size is kept to restore next time it's opened.- Parameters:
- shell- The window shell.
- className- The class to remember the size of the dialog for, null for none.
- image- The image for the dialog relative the icon directory, null for none.
- w- Width of window, zero for none, negative not to scale.
- h- Height of window, zero for none, negative not to scale.
 
- cxpublic int cx- (int w) Calculates the width of an element with the dialog font.- Parameters:
- w- The width in pixel for the 100% font.
- Returns:
- The width to use.
 
- cypublic int cy- (int h) Calculates the height of an element with the dialog font.- Parameters:
- h- The width in pixel for the 100% font.
- Returns:
- The height to use.
 
- s2public int s2()Gets the spacing of 2 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s4public int s4()Gets the spacing of 4 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s5public int s5()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s8public int s8()Gets the spacing of 8 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s10public int s10()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s15public int s15()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- s20public int s20()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
 
- cyPropertypublic int cyProperty()Gets the height of each item for properties.- Returns:
- The default height is 16.
 
- getNormalFontpublic org.eclipse.swt.graphics.Font getNormalFont()Gets the default dialog normal font.- Returns:
- The normal font.
 
- getHeadingFontpublic org.eclipse.swt.graphics.Font getHeadingFont()Gets a heading font.- Returns:
- The font.
 
- getBoldFontpublic org.eclipse.swt.graphics.Font getBoldFont()Gets a bold font for a standard component.- Returns:
- The font.
 
- getItalicFontpublic org.eclipse.swt.graphics.Font getItalicFont()Gets an italic font for a standard component.- Returns:
- The font.
 
- getFixedFontpublic org.eclipse.swt.graphics.Font getFixedFont()Gets the standard fixed font.- Returns:
- The font.
 
- loadWorkBenchImagespublic void loadWorkBenchImages- (org.eclipse.swt.widgets.ToolItem item, String nameEnabled, String nameDisabled) Loads a set of workbench Image's from its symbolic names defined in org.eclipse.ui.ISharedImages and assigns it to the ToolItem.- Parameters:
- item- The tool bar item.
- nameEnabled- The name of the enabled image.
- nameDisabled- The name of the disabled image.
 
- getNewImageDescriptorpublic org.eclipse.jface.resource.ImageDescriptor getNewImageDescriptor- (org.eclipse.swt.graphics.Image image) Creates a "New item" image descriptor from an existing image.- Parameters:
- image- The image.
- Returns:
- The cached image descriptor with a "new item decorator" on the top-right corner.
 
- getNewImagepublic org.eclipse.swt.graphics.Image getNewImage- (org.eclipse.swt.graphics.Image image) Creates a "New item" image from an existing image.- Parameters:
- image- The image.
- Returns:
- A cached image with a "new item decorator" on the top-right corner.
 
- getWizardImagepublic org.eclipse.swt.graphics.Image getWizardImage- (org.eclipse.swt.graphics.Image image) Creates a "wizard" image from an existing image.- Parameters:
- image- The image.
- Returns:
- A cached image with the overlay of a new-wizard.