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 Summary
Field Summary
Modifier and TypeFieldDescriptionorg.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.Display
The Display.org.eclipse.swt.graphics.Color
org.eclipse.swt.graphics.Color
org.eclipse.swt.graphics.Color
static final org.eclipse.jface.viewers.StyledString.Styler
The 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.Styler
Styler used for Package Names for StyledString's.org.eclipse.swt.graphics.Color
final org.eclipse.jface.viewers.StyledString.Styler
Styler 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 Summary
Modifier and TypeMethodDescriptionstatic 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.void
Centers the window on screen over its parent and sets the size.void
Centers the window on screen over its parent and sets the size and image.void
Centers the window on screen over its parent and sets the size and image.void
Centers 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.int
Gets the height of each item for properties.org.eclipse.swt.graphics.Font
Gets 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.Font
Gets the standard fixed font.org.eclipse.swt.graphics.Font
Gets a font and adds it to be disposed of when the plug-in exits.org.eclipse.swt.graphics.Font
Gets a heading font.org.eclipse.swt.graphics.Image
getImage
(DesignerProp dp) Gets the Image for a DesignerProp instance.org.eclipse.swt.graphics.Image
Gets an Image for a property.<GPROP extends GProp<?>>
org.eclipse.swt.graphics.ImageGets an Image for a property class.org.eclipse.swt.graphics.Image
Gets 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 ApplicationUI
Gets the instance of the ApplicationUI.org.eclipse.swt.graphics.Font
Gets 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.Font
Gets 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.boolean
Gets the flag not to use scaling because it's automatic.boolean
Checks if a "dark" mode is used, e.g.static boolean
Checks 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_STYLER
public static final org.eclipse.jface.viewers.StyledString.Styler ERROR_STYLERThe error style color for StyledText.display
public final org.eclipse.swt.widgets.Display displayThe Display.white
public final org.eclipse.swt.graphics.Color whiteblack
public final org.eclipse.swt.graphics.Color blacktransparent
public final org.eclipse.swt.graphics.Color transparentgray
public final org.eclipse.swt.graphics.Color grayborder
public org.eclipse.swt.graphics.Color borderforeground
public org.eclipse.swt.graphics.Color foregroundbackground
public org.eclipse.swt.graphics.Color backgroundwidgetBackground
public org.eclipse.swt.graphics.Color widgetBackgroundheaderBackground
public org.eclipse.swt.graphics.Color headerBackgroundlistSelectionForeground
public org.eclipse.swt.graphics.Color listSelectionForegroundlistSelectionBackground
public org.eclipse.swt.graphics.Color listSelectionBackgrounddisabledForeground
public org.eclipse.swt.graphics.Color disabledForegroundlightShadow
public org.eclipse.swt.graphics.Color lightShadowdarkShadow
public org.eclipse.swt.graphics.Color darkShadowtooltipBackground
public org.eclipse.swt.graphics.Color tooltipBackgroundentryFieldFocusBackground
public org.eclipse.swt.graphics.Color entryFieldFocusBackgroundentryFieldBackground
public org.eclipse.swt.graphics.Color entryFieldBackgroundentryFieldForeground
public org.eclipse.swt.graphics.Color entryFieldForegrounderrorBackground
public org.eclipse.swt.graphics.Color errorBackgrounderrorBackgroundCursor
public org.eclipse.swt.graphics.Color errorBackgroundCursorerrorForeground
public org.eclipse.swt.graphics.Color errorForegroundwarningBackground
public org.eclipse.swt.graphics.Color warningBackgroundwarningBackgroundCursor
public org.eclipse.swt.graphics.Color warningBackgroundCursorwarningForeground
public org.eclipse.swt.graphics.Color warningForegroundinfoBackground
public org.eclipse.swt.graphics.Color infoBackgroundinfoBackgroundCursor
public org.eclipse.swt.graphics.Color infoBackgroundCursorinfoForeground
public org.eclipse.swt.graphics.Color infoForegroundgreenForeground
public org.eclipse.swt.graphics.Color greenForegroundgreenBackground
public org.eclipse.swt.graphics.Color greenBackgroundselectedPropBackground
public org.eclipse.swt.graphics.Color selectedPropBackgroundpropertyValueWarning
public org.eclipse.swt.graphics.Color propertyValueWarningpropertyValueError
public org.eclipse.swt.graphics.Color propertyValueErrorpropertyValueUndefined
public org.eclipse.swt.graphics.Color propertyValueUndefinedpropertyValueDefined
public org.eclipse.swt.graphics.Color propertyValueDefinedpropertyValueInherited
public org.eclipse.swt.graphics.Color propertyValueInheritedpropertyValueOverridden
public org.eclipse.swt.graphics.Color propertyValueOverriddenpaleLine
public org.eclipse.swt.graphics.Color paleLinepropTreeLine
public org.eclipse.swt.graphics.Color propTreeLinepropEditorBackground
public org.eclipse.swt.graphics.Color propEditorBackgroundpropEditorIconBackground
public org.eclipse.swt.graphics.Color propEditorIconBackgroundpackageNameStyler
public final org.eclipse.jface.viewers.StyledString.Styler packageNameStylerStyler used for Package Names for StyledString's.projectNameStyler
public final org.eclipse.jface.viewers.StyledString.Styler projectNameStylerStyler used for Project Names for StyledString's.imageFile
public final org.eclipse.swt.graphics.Image imageFileimageError
public final org.eclipse.swt.graphics.Image imageErrorimageWarning
public final org.eclipse.swt.graphics.Image imageWarningimageInformation
public final org.eclipse.swt.graphics.Image imageInformationimageFolder
public org.eclipse.swt.graphics.Image imageFolderimageFolderSelector
public org.eclipse.swt.graphics.Image imageFolderSelectorimageInformationCircle
public org.eclipse.swt.graphics.Image imageInformationCircleimageEditPen
public org.eclipse.swt.graphics.Image imageEditPenimageEditProperties
public org.eclipse.swt.graphics.Image imageEditPropertiesimageGotoInput
public org.eclipse.swt.graphics.Image imageGotoInputimageIizi
public org.eclipse.swt.graphics.Image imageIiziimageModule
public org.eclipse.swt.graphics.Image imageModuleimagePanel
public org.eclipse.swt.graphics.Image imagePanelimageVirtualSpace
public org.eclipse.swt.graphics.Image imageVirtualSpaceimageInfo
public org.eclipse.swt.graphics.Image imageInfoimageWizard
public org.eclipse.swt.graphics.Image imageWizardimageExtends
public org.eclipse.swt.graphics.Image imageExtendsimageAdd
public org.eclipse.swt.graphics.Image imageAddimageShow
public org.eclipse.swt.graphics.Image imageShowimageMore
public org.eclipse.swt.graphics.Image imageMoreimageMore16
public org.eclipse.swt.graphics.Image imageMore16imageProperties
public org.eclipse.swt.graphics.Image imagePropertiesimageExpandAll
public org.eclipse.swt.graphics.Image imageExpandAllimageCollapseAll
public org.eclipse.swt.graphics.Image imageCollapseAllimageSortA2Z
public org.eclipse.swt.graphics.Image imageSortA2ZimageSortZ2A
public org.eclipse.swt.graphics.Image imageSortZ2AimageSortByType
public org.eclipse.swt.graphics.Image imageSortByTypeimageShowTree
public org.eclipse.swt.graphics.Image imageShowTreeimageShowInherited
public org.eclipse.swt.graphics.Image imageShowInheritedimageLinkProps
public org.eclipse.swt.graphics.Image imageLinkPropsimageHideValues
public org.eclipse.swt.graphics.Image imageHideValuesimageShowInEditor
public org.eclipse.swt.graphics.Image imageShowInEditorimageErrorDecoration
public org.eclipse.swt.graphics.Image imageErrorDecorationimageWarningDecoration
public org.eclipse.swt.graphics.Image imageWarningDecorationimageConvert
public org.eclipse.swt.graphics.Image imageConvertimageRichText
public org.eclipse.swt.graphics.Image imageRichTextimageRawText
public org.eclipse.swt.graphics.Image imageRawTextimageTagProcessing
public org.eclipse.swt.graphics.Image imageTagProcessingimageTextTable
public org.eclipse.swt.graphics.Image imageTextTableimageTranslate
public org.eclipse.swt.graphics.Image imageTranslateimageImport
public org.eclipse.swt.graphics.Image imageImportimageOpen
public org.eclipse.swt.graphics.Image imageOpenimageMoveProps
public org.eclipse.swt.graphics.Image imageMovePropsimageTextOK
public org.eclipse.swt.graphics.Image imageTextOKimageTextError
public org.eclipse.swt.graphics.Image imageTextErrorimageFormatPlain
public org.eclipse.swt.graphics.Image imageFormatPlainimageFormatPlainTag
public org.eclipse.swt.graphics.Image imageFormatPlainTagimageFormatHTML
public org.eclipse.swt.graphics.Image imageFormatHTMLimageFormatHTMLTag
public org.eclipse.swt.graphics.Image imageFormatHTMLTagimageInsertTextID
public org.eclipse.swt.graphics.Image imageInsertTextIDimageInsertTextIDDisabled
public org.eclipse.swt.graphics.Image imageInsertTextIDDisabledimageInsertTextVS
public org.eclipse.swt.graphics.Image imageInsertTextVSimageInsertTextVSDisabled
public org.eclipse.swt.graphics.Image imageInsertTextVSDisabledimageInsertHyperlink
public org.eclipse.swt.graphics.Image imageInsertHyperlinkimageInsertHyperlinkDisabled
public org.eclipse.swt.graphics.Image imageInsertHyperlinkDisabledimageRemoveHyperlink
public org.eclipse.swt.graphics.Image imageRemoveHyperlinkimageRemoveHyperlinkDisabled
public org.eclipse.swt.graphics.Image imageRemoveHyperlinkDisabledimageInsertImage
public org.eclipse.swt.graphics.Image imageInsertImageimageInsertImageDisabled
public org.eclipse.swt.graphics.Image imageInsertImageDisabledimageMoveUp
public org.eclipse.swt.graphics.Image imageMoveUpimageMoveDown
public org.eclipse.swt.graphics.Image imageMoveDownimageMoveTop
public org.eclipse.swt.graphics.Image imageMoveTopimageMoveBottom
public org.eclipse.swt.graphics.Image imageMoveBottomimageUIPanelPart
public org.eclipse.swt.graphics.Image imageUIPanelPartimageUIDialog
public org.eclipse.swt.graphics.Image imageUIDialogimageUIAccordion
public org.eclipse.swt.graphics.Image imageUIAccordionimageUIContainer
public org.eclipse.swt.graphics.Image imageUIContainerimageUIContextMenu
public org.eclipse.swt.graphics.Image imageUIContextMenuimageUITitlePane
public org.eclipse.swt.graphics.Image imageUITitlePaneimageUIMenuBar
public org.eclipse.swt.graphics.Image imageUIMenuBarimageUIMenu
public org.eclipse.swt.graphics.Image imageUIMenuimageUITabContainer
public org.eclipse.swt.graphics.Image imageUITabContainerimageUISwapContainer
public org.eclipse.swt.graphics.Image imageUISwapContainerimageUILayouts
public org.eclipse.swt.graphics.Image imageUILayoutsimageUIAbsoluteLayout
public org.eclipse.swt.graphics.Image imageUIAbsoluteLayoutimageUIAccordionLayout
public org.eclipse.swt.graphics.Image imageUIAccordionLayoutimageUIBorderLayout
public org.eclipse.swt.graphics.Image imageUIBorderLayoutimageUIFlexLayout
public org.eclipse.swt.graphics.Image imageUIFlexLayoutimageUIGridLayout
public org.eclipse.swt.graphics.Image imageUIGridLayoutimageUITabLayout
public org.eclipse.swt.graphics.Image imageUITabLayoutimageUISwapLayout
public org.eclipse.swt.graphics.Image imageUISwapLayoutimageSelector
public org.eclipse.swt.graphics.Image imageSelectorimageSelectors
public org.eclipse.swt.graphics.Image imageSelectorsimageStyles
public org.eclipse.swt.graphics.Image imageStylesimageStateStyles
public org.eclipse.swt.graphics.Image imageStateStylesimageAsset
public org.eclipse.swt.graphics.Image imageAssetimageDevicePortrait
public org.eclipse.swt.graphics.Image imageDevicePortraitimageDeviceLandscape
public org.eclipse.swt.graphics.Image imageDeviceLandscapeimageUIComponent
public org.eclipse.swt.graphics.Image imageUIComponentimageUIComponents
public org.eclipse.swt.graphics.Image imageUIComponentsimageThemes
public org.eclipse.swt.graphics.Image imageThemesimageThemesError
public org.eclipse.swt.graphics.Image imageThemesErrorimageUIButton
public org.eclipse.swt.graphics.Image imageUIButtonimageUICalendar
public org.eclipse.swt.graphics.Image imageUICalendarimageUICheckBox
public org.eclipse.swt.graphics.Image imageUICheckBoximageUIComboBox
public org.eclipse.swt.graphics.Image imageUIComboBoximageUIDateTime
public org.eclipse.swt.graphics.Image imageUIDateTimeimageUIEmpty
public org.eclipse.swt.graphics.Image imageUIEmptyimageUILabel
public org.eclipse.swt.graphics.Image imageUILabelimageUIOutput
public org.eclipse.swt.graphics.Image imageUIOutputimageUIMenuItem
public org.eclipse.swt.graphics.Image imageUIMenuItemimageUICheckedMenuItem
public org.eclipse.swt.graphics.Image imageUICheckedMenuItemimageUIRadioMenuItem
public org.eclipse.swt.graphics.Image imageUIRadioMenuItemimageUIMenuSeparator
public org.eclipse.swt.graphics.Image imageUIMenuSeparatorimageUIProgress
public org.eclipse.swt.graphics.Image imageUIProgressimageUIRadioButton
public org.eclipse.swt.graphics.Image imageUIRadioButtonimageUIGauge
public org.eclipse.swt.graphics.Image imageUIGaugeimageUISlider
public org.eclipse.swt.graphics.Image imageUISliderimageUISpinner
public org.eclipse.swt.graphics.Image imageUISpinnerimageUIText
public org.eclipse.swt.graphics.Image imageUITextimageUITextArea
public org.eclipse.swt.graphics.Image imageUITextAreaimageUIPicker
public org.eclipse.swt.graphics.Image imageUIPickerimageUIPickerSlot
public org.eclipse.swt.graphics.Image imageUIPickerSlotimageUITable
public org.eclipse.swt.graphics.Image imageUITableimageUITableColumn
public org.eclipse.swt.graphics.Image imageUITableColumnimageUIChart
public org.eclipse.swt.graphics.Image imageUIChartimageUIImage
public org.eclipse.swt.graphics.Image imageUIImageimageUIImage2
public org.eclipse.swt.graphics.Image imageUIImage2imageUICalendarList
public org.eclipse.swt.graphics.Image imageUICalendarListimageUICalendarEvent
public org.eclipse.swt.graphics.Image imageUICalendarEventimageUIMap
public org.eclipse.swt.graphics.Image imageUIMapimageUIMapMarkers
public org.eclipse.swt.graphics.Image imageUIMapMarkersimageUIMapMarker
public org.eclipse.swt.graphics.Image imageUIMapMarkerimageMUIButton
public org.eclipse.swt.graphics.Image imageMUIButtonimageMUICheckBox
public org.eclipse.swt.graphics.Image imageMUICheckBoximageMUIRadioButton
public org.eclipse.swt.graphics.Image imageMUIRadioButtonimageMUIList
public org.eclipse.swt.graphics.Image imageMUIListimageMUIHeading
public org.eclipse.swt.graphics.Image imageMUIHeadingimageMUITabBar
public org.eclipse.swt.graphics.Image imageMUITabBarimageMUIProgress
public org.eclipse.swt.graphics.Image imageMUIProgressimageMUIProgressInd
public org.eclipse.swt.graphics.Image imageMUIProgressIndimageMUISlider
public org.eclipse.swt.graphics.Image imageMUISliderimageMUISwitch
public org.eclipse.swt.graphics.Image imageMUISwitchimageMUIListHeader
public org.eclipse.swt.graphics.Image imageMUIListHeaderimageMUISimpleListItem
public org.eclipse.swt.graphics.Image imageMUISimpleListItemimageVSComponent
public org.eclipse.swt.graphics.Image imageVSComponentimageVSTable
public org.eclipse.swt.graphics.Image imageVSTableimageVSColumn
public org.eclipse.swt.graphics.Image imageVSColumnimageVSRow
public org.eclipse.swt.graphics.Image imageVSRowimageVSField
public org.eclipse.swt.graphics.Image imageVSFieldimageVSGroup
public org.eclipse.swt.graphics.Image imageVSGroupimageVSCell
public org.eclipse.swt.graphics.Image imageVSCellimageVSAction
public org.eclipse.swt.graphics.Image imageVSActionimageVSActionReference
public org.eclipse.swt.graphics.Image imageVSActionReferenceimageAction
public org.eclipse.swt.graphics.Image imageActionimageActions
public org.eclipse.swt.graphics.Image imageActionsimageActionReference
public org.eclipse.swt.graphics.Image imageActionReferenceimageVSType
public org.eclipse.swt.graphics.Image imageVSTypeimageVSMessage
public org.eclipse.swt.graphics.Image imageVSMessageimageVSName
public org.eclipse.swt.graphics.Image imageVSNameimageVSValue
public org.eclipse.swt.graphics.Image imageVSValueimageVSParticipant
public org.eclipse.swt.graphics.Image imageVSParticipantimageVSParticipants
public org.eclipse.swt.graphics.Image imageVSParticipantsimageVSState
public org.eclipse.swt.graphics.Image imageVSStateimageVSReference
public org.eclipse.swt.graphics.Image imageVSReferenceimageDescription
public org.eclipse.swt.graphics.Image imageDescriptionimageCNProperty
public org.eclipse.swt.graphics.Image imageCNPropertyimageActors
public org.eclipse.swt.graphics.Image imageActorsimageConnectionsIn
public org.eclipse.swt.graphics.Image imageConnectionsInimageConnectionsOut
public org.eclipse.swt.graphics.Image imageConnectionsOutimageConnectionsOneToMany
public org.eclipse.swt.graphics.Image imageConnectionsOneToManyimageConnectionsManyToOne
public org.eclipse.swt.graphics.Image imageConnectionsManyToOneimageClear
public org.eclipse.swt.graphics.Image imageClearimageClearHover
public org.eclipse.swt.graphics.Image imageClearHoverimageExpanded
public org.eclipse.swt.graphics.Image imageExpandedimageExpandedHover
public org.eclipse.swt.graphics.Image imageExpandedHoverimageExpandedWarning
public org.eclipse.swt.graphics.Image imageExpandedWarningimageExpandedWarningHover
public org.eclipse.swt.graphics.Image imageExpandedWarningHoverimageExpandedError
public org.eclipse.swt.graphics.Image imageExpandedErrorimageExpandedErrorHover
public org.eclipse.swt.graphics.Image imageExpandedErrorHoverimageCollapsed
public org.eclipse.swt.graphics.Image imageCollapsedimageCollapsedHover
public org.eclipse.swt.graphics.Image imageCollapsedHoverimageCollapsedWarning
public org.eclipse.swt.graphics.Image imageCollapsedWarningimageCollapsedWarningHover
public org.eclipse.swt.graphics.Image imageCollapsedWarningHoverimageCollapsedError
public org.eclipse.swt.graphics.Image imageCollapsedErrorimageCollapsedErrorHover
public org.eclipse.swt.graphics.Image imageCollapsedErrorHoverimageUndefined
public org.eclipse.swt.graphics.Image imageUndefinedimageUndefinedHover
public org.eclipse.swt.graphics.Image imageUndefinedHoverimageMissing
public org.eclipse.swt.graphics.Image imageMissingimageDefined
public org.eclipse.swt.graphics.Image imageDefinedimageDefinedHover
public org.eclipse.swt.graphics.Image imageDefinedHoverimageDefinedWarning
public org.eclipse.swt.graphics.Image imageDefinedWarningimageDefinedWarningHover
public org.eclipse.swt.graphics.Image imageDefinedWarningHoverimageDefinedError
public org.eclipse.swt.graphics.Image imageDefinedErrorimageDefinedErrorHover
public org.eclipse.swt.graphics.Image imageDefinedErrorHoverimagePlus
public org.eclipse.swt.graphics.Image imagePlusimagePlusHover
public org.eclipse.swt.graphics.Image imagePlusHoverimageMinus
public org.eclipse.swt.graphics.Image imageMinusimageMinusHover
public org.eclipse.swt.graphics.Image imageMinusHoverimageChecked
public org.eclipse.swt.graphics.Image imageCheckedimageUnchecked
public org.eclipse.swt.graphics.Image imageUncheckedimageText
public org.eclipse.swt.graphics.Image imageTextimageTextHover
public org.eclipse.swt.graphics.Image imageTextHoverimageTextTag
public org.eclipse.swt.graphics.Image imageTextTagimageTextTagHover
public org.eclipse.swt.graphics.Image imageTextTagHoverimageHTML
public org.eclipse.swt.graphics.Image imageHTMLimageHTMLHover
public org.eclipse.swt.graphics.Image imageHTMLHoverimageHTMLTag
public org.eclipse.swt.graphics.Image imageHTMLTagimageHTMLTagHover
public org.eclipse.swt.graphics.Image imageHTMLTagHoverimageHoverButton
public org.eclipse.swt.graphics.Image imageHoverButtonimageDownButton
public org.eclipse.swt.graphics.Image imageDownButtonimageModulePackage
public org.eclipse.swt.graphics.Image imageModulePackageimageModulePackageEmpty
public org.eclipse.swt.graphics.Image imageModulePackageEmptyimageModulePackageNameError
public org.eclipse.swt.graphics.Image imageModulePackageNameErrorimageImageDefinition
public org.eclipse.swt.graphics.Image imageImageDefinitionimageFontFaces
public org.eclipse.swt.graphics.Image imageFontFacesimageFontIconsDefinition
public org.eclipse.swt.graphics.Image imageFontIconsDefinitionimageFontIconDefinition
public org.eclipse.swt.graphics.Image imageFontIconDefinitionimageFontFiles
public org.eclipse.swt.graphics.Image imageFontFilesimageFontFile
public org.eclipse.swt.graphics.Image imageFontFileimageSingleImage
public org.eclipse.swt.graphics.Image imageSingleImageimageMultipleImages
public org.eclipse.swt.graphics.Image imageMultipleImagesimageStyledImage
public org.eclipse.swt.graphics.Image imageStyledImageimageImageLocation
public org.eclipse.swt.graphics.Image imageImageLocationimageImageResolution
public org.eclipse.swt.graphics.Image imageImageResolutionimageImageStyle
public org.eclipse.swt.graphics.Image imageImageStyleimageSVGDefinition
public org.eclipse.swt.graphics.Image imageSVGDefinitionimageClass
public org.eclipse.swt.graphics.Image imageClassimageJavaMethodInstance
public org.eclipse.swt.graphics.Image imageJavaMethodInstanceimageJavaMethodStatic
public org.eclipse.swt.graphics.Image imageJavaMethodStaticimageJavaMethodInstanceLarge
public org.eclipse.swt.graphics.Image imageJavaMethodInstanceLargeimageJavaMethodStaticLarge
public org.eclipse.swt.graphics.Image imageJavaMethodStaticLargeimageJavaActionActor
public org.eclipse.swt.graphics.Image imageJavaActionActorimageNewFieldActor
public org.eclipse.swt.graphics.Image imageNewFieldActorimageNewActionActor
public org.eclipse.swt.graphics.Image imageNewActionActorcheckBoxChecked
public org.eclipse.swt.graphics.Image checkBoxCheckedcheckBoxUnchecked
public org.eclipse.swt.graphics.Image checkBoxUncheckedcheckBoxCheckedDisabled
public org.eclipse.swt.graphics.Image checkBoxCheckedDisabledcheckBoxUncheckedDisabled
public org.eclipse.swt.graphics.Image checkBoxUncheckedDisabledradioButtonSelected
public org.eclipse.swt.graphics.Image radioButtonSelectedradioButtonUnselected
public org.eclipse.swt.graphics.Image radioButtonUnselectedradioButtonSelectedDisabled
public org.eclipse.swt.graphics.Image radioButtonSelectedDisabledradioButtonUnselectedDisabled
public org.eclipse.swt.graphics.Image radioButtonUnselectedDisableddeviceCast
public org.eclipse.swt.graphics.Image deviceCastdeviceCastDisabled
public org.eclipse.swt.graphics.Image deviceCastDisabled
Method Details
autoScaleDown
public 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.
autoScaleUp
public 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.
addThemeListener
Call 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 isnull
.
addThemeListener
public 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 isnull
.
removeThemeListener
Call 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 isnull
.
getInstance
Gets 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
.
isInstanceCreated
public static boolean isInstanceCreated()Checks if the ApplicationUI instance is created.- Returns:
- true if ApplicationUI is created or not.
isAutoScaled
public 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.
getTheme
Gets the current theme.- Returns:
- The current theme.
isDarkMode
public boolean isDarkMode()Checks if a "dark" mode is used, e.g. usingApplicationUI.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.
getColor
public 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.
getColor
public 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.
getFont
Gets 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.
getImage
Gets 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.
getImage
public 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.
removeImage
public 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.
getDecoratedImage
public 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.
getImage
Gets 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.
getImage
Gets 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.
getImage
Gets the Image for a DesignerProp instance.- Parameters:
dp
- The Designer property instance.- Returns:
- The Image, or null if
dp
is null.
getErrorImage
Gets 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.
getErrorImage
public 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.
getErrorImageDecoration
public 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.
getWorkBenchImage
Gets 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.
loadWorkBenchImages
Loads 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.
applyHeaderGradient
public 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.
center
public 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.
center
Centers 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.
center
Centers 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.
center
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.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.
center
public 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.
cx
public 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.
cy
public 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.
s2
public int s2()Gets the spacing of 2 "pixels" depending on font scaling.- Returns:
- The pixel value.
s4
public int s4()Gets the spacing of 4 "pixels" depending on font scaling.- Returns:
- The pixel value.
s5
public int s5()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
s8
public int s8()Gets the spacing of 8 "pixels" depending on font scaling.- Returns:
- The pixel value.
s10
public int s10()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
s15
public int s15()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
s20
public int s20()Gets the spacing of 5 "pixels" depending on font scaling.- Returns:
- The pixel value.
cyProperty
public int cyProperty()Gets the height of each item for properties.- Returns:
- The default height is 16.
getNormalFont
public org.eclipse.swt.graphics.Font getNormalFont()Gets the default dialog normal font.- Returns:
- The normal font.
getHeadingFont
public org.eclipse.swt.graphics.Font getHeadingFont()Gets a heading font.- Returns:
- The font.
getBoldFont
public org.eclipse.swt.graphics.Font getBoldFont()Gets a bold font for a standard component.- Returns:
- The font.
getItalicFont
public org.eclipse.swt.graphics.Font getItalicFont()Gets an italic font for a standard component.- Returns:
- The font.
getFixedFont
public org.eclipse.swt.graphics.Font getFixedFont()Gets the standard fixed font.- Returns:
- The font.
loadWorkBenchImages
public 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.
getNewImageDescriptor
public 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.
getNewImage
public 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.
getWizardImage
public 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.