Package net.officefloor.eclipse.ide.swt
Class SwtUtil
- java.lang.Object
-
- net.officefloor.eclipse.ide.swt.SwtUtil
-
public class SwtUtil extends java.lang.Object
Utility methods for the SWT.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BACKGROUND_COLOR
Name of the background.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
autoHideScrollbars(org.eclipse.swt.custom.StyledText text)
Provides auto hiding of the scroll bars.static void
autoHideScrollbars(org.eclipse.swt.widgets.Text text)
Provides auto hiding of the scroll bars.static org.eclipse.jface.fieldassist.ControlDecoration
errorDecoration(org.eclipse.swt.widgets.Control control, int style)
Creates error decoration on theControl
.static java.util.Map<java.lang.String,javafx.scene.paint.Color>
loadThemeColours(java.lang.Object uiObject, boolean isDispose)
Loads theITheme
Color
instances.
-
-
-
Field Detail
-
BACKGROUND_COLOR
public static final java.lang.String BACKGROUND_COLOR
Name of the background.- See Also:
- Constant Field Values
-
-
Method Detail
-
autoHideScrollbars
public static void autoHideScrollbars(org.eclipse.swt.widgets.Text text)
Provides auto hiding of the scroll bars.- Parameters:
text
-Text
.
-
autoHideScrollbars
public static void autoHideScrollbars(org.eclipse.swt.custom.StyledText text)
Provides auto hiding of the scroll bars.- Parameters:
text
-StyledText
.
-
errorDecoration
public static org.eclipse.jface.fieldassist.ControlDecoration errorDecoration(org.eclipse.swt.widgets.Control control, int style)
Creates error decoration on theControl
.- Parameters:
control
-Control
to have error decoration.style
-SWT
style.- Returns:
ControlDecoration
.
-
loadThemeColours
public static java.util.Map<java.lang.String,javafx.scene.paint.Color> loadThemeColours(java.lang.Object uiObject, boolean isDispose)
Loads theITheme
Color
instances.- Parameters:
uiObject
- UI object to extractColor
instances.isDispose
- Indicates to dispose theWidget
once complete.- Returns:
Map
of CSS property toColor
.
-
-