1 12 package org.eclipse.jface.internal.databinding.provisional.conversion; 13 14 17 public class IdentityConverter implements IConverter { 18 19 private Class fromType; 20 21 private Class toType; 22 23 26 public IdentityConverter(Class type) { 27 this.fromType = type; 28 this.toType = type; 29 } 30 31 35 public IdentityConverter(Class fromType, Class toType) { 36 this.fromType = fromType; 37 this.toType = toType; 38 } 39 40 45 public Object convert(Object source) { 46 return source; 47 } 48 49 public Object getFromType() { 50 return fromType; 51 } 52 53 public Object getToType() { 54 return toType; 55 } 56 57 } 58 | Popular Tags |