Package org.eclipse.core.databinding.conversion

Examples of org.eclipse.core.databinding.conversion.IConverter.convert()


              } catch (Exception e) {
              }
            }
            IConverter c = XWT.findConvertor(value.getClass(), targetType);
            if (c != null) {
              value = c.convert(value);
            }
          }
          writeMethod.invoke(target, new Object[] { value });
          return;
        }
View Full Code Here


            } catch (Exception e) {
            }
          }
          IConverter c = XWT.findConvertor(value.getClass(), fieldType);
          if (c != null) {
            value = c.convert(value);
          }
          field.set(target, value);
          return;
        }
      }
View Full Code Here

                .isAssignableFrom(propertyType)))) {
          Object orginalValue = value;
          IConverter converter = loader.findConvertor(value
              .getClass(), propertyType);
          if (converter != null) {
            value = converter.convert(value);
            if (value != null
                && orginalValue instanceof IBinding
                && !propertyType.isAssignableFrom(value
                    .getClass())) {
              converter = loader.findConvertor(value.getClass(),
View Full Code Here

                && !propertyType.isAssignableFrom(value
                    .getClass())) {
              converter = loader.findConvertor(value.getClass(),
                  propertyType);
              if (converter != null) {
                value = converter.convert(value);
              } else {
                LoggerManager.log(new XWTException("Convertor "
                    + value.getClass().getSimpleName()
                    + "->" + propertyType.getSimpleName()
                    + " is not found"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.