public class SWTValidationUiServiceImpl extends Object implements SWTValidationUiService
SWTValidationUiService
which delegates to the SWTValidationHelper
to
get the validation icons and colors.Constructor and Description |
---|
SWTValidationUiServiceImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(org.eclipse.emf.common.util.Diagnostic diagnostic,
VElement vElement,
ViewModelContext viewModelContext)
Returns the background color for a control with the given Diagnostic, VElement
and view model context, if applicable.
|
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(VElement vElement,
ViewModelContext viewModelContext)
Returns the background color for a control matching the highest severity of the given VElement's diagnostic.
|
org.eclipse.swt.graphics.Color |
getValidationForegroundColor(org.eclipse.emf.common.util.Diagnostic diagnostic,
VElement vElement,
ViewModelContext viewModelContext)
Returns the foreground color for a control with the given Diagnostic, VElement
and view model context, if applicable.
|
org.eclipse.swt.graphics.Color |
getValidationForegroundColor(VElement vElement,
ViewModelContext viewModelContext)
Returns the foreground color for a control matching the highest severity of the given VElement's diagnostic.
|
org.eclipse.swt.graphics.Image |
getValidationIcon(org.eclipse.emf.common.util.Diagnostic diagnostic,
VElement vElement,
ViewModelContext viewModelContext)
Returns the validation icon matching the given Diagnostic, VElement
and view model context, if applicable.
|
org.eclipse.swt.graphics.Image |
getValidationIcon(VElement vElement,
ViewModelContext viewModelContext)
Returns the validation icon matching the highest severity of the given VElement's diagnostic.
|
public SWTValidationUiServiceImpl()
public org.eclipse.swt.graphics.Image getValidationIcon(org.eclipse.emf.common.util.Diagnostic diagnostic, VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationIcon
in interface SWTValidationUiService
diagnostic
- the Diagnostic
defining the validation visualizationvElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
null
when no icon is to be displayedpublic org.eclipse.swt.graphics.Image getValidationIcon(VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationIcon
in interface SWTValidationUiService
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
null
when no icon is to be displayedpublic org.eclipse.swt.graphics.Color getValidationForegroundColor(org.eclipse.emf.common.util.Diagnostic diagnostic, VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationForegroundColor
in interface SWTValidationUiService
diagnostic
- the Diagnostic
defining the validation visualizationvElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
public org.eclipse.swt.graphics.Color getValidationForegroundColor(VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationForegroundColor
in interface SWTValidationUiService
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(org.eclipse.emf.common.util.Diagnostic diagnostic, VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationBackgroundColor
in interface SWTValidationUiService
diagnostic
- the Diagnostic
defining the validation visualizationvElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(VElement vElement, ViewModelContext viewModelContext)
SWTValidationUiService
getValidationBackgroundColor
in interface SWTValidationUiService
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
Copyright © 2020. All rights reserved.