1 19 20 26 27 package org.netbeans.modules.xml.schema.ui.nodes.schema.properties; 28 29 import java.lang.reflect.InvocationTargetException ; 30 import org.openide.util.NbBundle; 31 import org.netbeans.modules.xml.schema.model.Form; 32 import org.netbeans.modules.xml.schema.model.SchemaComponent; 33 import org.netbeans.modules.xml.schema.ui.basic.editors.FormPropertyEditor; 34 35 39 public class FormProperty extends BaseSchemaProperty { 40 41 42 public FormProperty(SchemaComponent component, String property, 43 String propName, String propDesc) 44 throws NoSuchMethodException { 45 super(component, Form.class, property, propName, propDesc, FormPropertyEditor.class); 46 } 47 48 public Object getValue() throws IllegalAccessException , 49 IllegalAccessException , InvocationTargetException { 50 try { 51 return super.getValue(); 52 } catch (InvocationTargetException ite) { 53 if(ite.getCause() instanceof IllegalArgumentException ) { 54 return null; 55 } 56 throw ite; 57 } 58 } 59 } 60 | Popular Tags |