1 19 20 28 29 package org.netbeans.modules.xml.wsdl.ui.property.view; 30 31 import javax.xml.namespace.QName ; 32 33 import org.netbeans.modules.xml.schema.model.Element; 34 import org.netbeans.modules.xml.wsdl.model.ExtensibilityElement; 35 import org.netbeans.modules.xml.wsdl.ui.property.model.PropertyModelException; 36 import org.openide.nodes.Sheet; 37 import org.openide.util.NbBundle; 38 39 43 public abstract class PropertyViewFactory { 44 45 private static PropertyViewFactory mInstance; 46 47 48 public PropertyViewFactory() { 49 } 50 51 public static synchronized PropertyViewFactory getInstance() throws PropertyModelException { 52 if (null == mInstance) { 53 String fac = System.getProperty(PropertyViewFactory.class.getName(), 54 "org.netbeans.modules.xml.wsdl.ui.property.view.impl.PropertyViewFactoryImpl"); try { 56 mInstance = (PropertyViewFactory) Class.forName(fac).newInstance(); 57 } catch (Exception e) { 58 throw new PropertyModelException( 59 NbBundle.getMessage(PropertyViewFactory.class, "ERR_MSG_PropertyViewFactory_CLASS_NOT_FOUND", fac), e); 60 } 61 } 62 return mInstance; 63 } 64 65 68 public abstract Sheet.Set[] getPropertySets(ExtensibilityElement exElement, QName elementQName, Element schemaElement); 69 } 70 | Popular Tags |