1 19 20 package org.netbeans.modules.xml.wsdl.ui.view.property; 21 22 import org.netbeans.modules.xml.wsdl.ui.api.property.Writable; 23 import org.openide.nodes.PropertySupport; 24 25 32 public class BaseAttributeProperty extends PropertySupport.Reflection { 33 34 Writable writable; 35 36 public BaseAttributeProperty(Writable writable, Class type, String getter, String setter) throws NoSuchMethodException { 37 super(writable, type, getter, setter); 38 this.writable = writable; 39 } 40 41 public BaseAttributeProperty(Writable writable, Class valueType, String argName) throws NoSuchMethodException { 42 super(writable, valueType, argName); 43 this.writable = writable; 44 } 45 46 @Override 47 public boolean canWrite() { 48 return writable.isWritable(); 49 } 50 51 52 53 } | Popular Tags |