Overview | Methods | This Package | All Packages
Retrieves a value editor for the specified data type.
Syntax
public static synchronized IValueEditor getValueEditor( Class type )
public static synchronized IValueEditor getValueEditor( Class type, IEditorSite site )
public static synchronized IValueEditor getValueEditor( Class type, IEditorSite site, boolean throwExceptions )
Parameters
type
The class of the data type to retrieve the value editor for.
site
An object implementing the IEditorSite interface that represents the value editor's site. If no site is needed, pass null for this parameter.
throwExceptions
Set to true to throw an exception if a value editor exists but could not be created. Set to false to catch the exception and return null. The default value is false.
Return Value
Returns an object implementing the IValueEditor interface that represents the value editor. If no value editor exists for the specified type, null is returned.
Exceptions
WFCException thrown if the value editor could not be created and throwExceptions is true.