|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.ecp.edit.spi.swt.util.SWTValidationHelper
public final class SWTValidationHelper
Helper class for accessing icons and colours for validations.
| Field Summary | |
|---|---|
static SWTValidationHelper |
INSTANCE
The instance of the SWTValidationHelper. |
| Method Summary | |
|---|---|
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(int severity)
Returns the background color for a control with the given validation severity. |
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the background color for a control with the given validation severity, VElement and view model context, if applicable. |
org.eclipse.swt.graphics.Image |
getValidationIcon(int severity)
Returns the validation icon matching the given severity. |
org.eclipse.swt.graphics.Image |
getValidationIcon(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the validation icon matching the given severity, VElement and view model context, if applicable. |
org.eclipse.jface.resource.ImageDescriptor |
getValidationOverlayDescriptor(int severity)
Returns an image descriptor which can be used as an overlay for validation icons. |
org.eclipse.jface.resource.ImageDescriptor |
getValidationOverlayDescriptor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the validation overlay icon matching the given severity, VElement and view model context, if applicable. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SWTValidationHelper INSTANCE
| Method Detail |
|---|
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - severity the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContext
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity)
severity - severity the severity of the Diagnostic
public org.eclipse.swt.graphics.Image getValidationIcon(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContext
null when no icon is to be displayedpublic org.eclipse.swt.graphics.Image getValidationIcon(int severity)
severity - the severity of the Diagnostic
null when no icon is to be displayed
public org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContext
null when no icon is to be displayedpublic org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity)
severity - the severity of the validation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||