1 19 20 package org.netbeans.modules.xml.wsdl.ui.api.property; 21 22 import java.lang.reflect.InvocationTargetException ; 23 24 import org.openide.nodes.PropertySupport.ReadOnly; 25 26 public class ReadOnlyProperty extends ReadOnly { 27 ExtensibilityElementPropertyAdapter adapter; 28 29 public ReadOnlyProperty(ExtensibilityElementPropertyAdapter adapter, String name, Class type, String displayName, String shortDescription) { 30 super(name, type, displayName, shortDescription); 31 this.adapter = adapter; 32 } 33 34 @Override 35 public Object getValue() throws IllegalAccessException , 36 InvocationTargetException { 37 return adapter.getValue(); 38 } 39 40 } 41 | Popular Tags |