1 17 18 package org.apache.geronimo.common.propertyeditor; 19 20 import java.io.File ; 21 import java.io.IOException ; 22 23 28 public class FileEditor 29 extends TextPropertyEditorSupport 30 { 31 38 public Object getValue() 39 { 40 try { 41 return new File (getAsText()).getCanonicalFile(); 42 } 43 catch (IOException e) { 44 throw new PropertyEditorException(e); 45 } 46 } 47 } 48 | Popular Tags |