org.eclipse.e4.xwt.converters
Class ObjectToString
java.lang.Object
org.eclipse.e4.xwt.converters.ObjectToString
- All Implemented Interfaces:
- org.eclipse.core.databinding.conversion.IConverter
- Direct Known Subclasses:
- DateToString, IntegerToString
public class ObjectToString
- extends java.lang.Object
- implements org.eclipse.core.databinding.conversion.IConverter
Safely SWT context values, it used to avoid a NullPointerException when set text values to SWT Widgets.
- Author:
- jliu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToString
public ObjectToString()
convert
public java.lang.Object convert(java.lang.Object fromObject)
- Specified by:
convert
in interface org.eclipse.core.databinding.conversion.IConverter
getFromType
public java.lang.Object getFromType()
- Specified by:
getFromType
in interface org.eclipse.core.databinding.conversion.IConverter
getToType
public java.lang.Object getToType()
- Specified by:
getToType
in interface org.eclipse.core.databinding.conversion.IConverter