1 19 20 package org.netbeans.modules.javadoc.comments; 21 22 import java.lang.reflect.InvocationTargetException ; 23 24 import org.openide.nodes.PropertySupport; 25 26 32 abstract class JavaDocPropertySupport extends PropertySupport { 33 34 41 JavaDocPropertySupport( String name, java.lang.Class type, boolean canW ) { 42 super(name, type, 43 ResourceUtils.getBundledString("PROP_" + name), ResourceUtils.getBundledString("HINT_" + name), true, canW); 46 47 setValue("canEditAsText", Boolean.FALSE); } 49 50 public void setValue (Object val) throws IllegalArgumentException , 51 IllegalAccessException , InvocationTargetException { 52 if (!canWrite()) 53 throw new IllegalAccessException (ResourceUtils.getBundledString("MSG_Cannot_Write")); } 56 } 57 58 | Popular Tags |