1 19 package org.netbeans.modules.xml.tools.generator; 20 21 import org.openide.nodes.Node; 22 import org.openide.loaders.DataObject; 23 24 import org.netbeans.modules.xml.core.DTDDataObject; 25 import org.netbeans.modules.xml.core.cookies.CookieFactory; 26 27 32 public class DTDGenerateSupportFactory extends CookieFactory { 33 34 private final DTDDataObject dataObject; 35 36 private static final Class [] SUPPORTED_COOKIES = new Class [] { 37 SAXGeneratorSupport.class, 38 GenerateDOMScannerSupport.class, 39 }; 40 41 42 43 public DTDGenerateSupportFactory (DTDDataObject dataObject) { 44 this.dataObject = dataObject; 45 } 46 47 48 50 protected Class [] supportedCookies () { 51 return SUPPORTED_COOKIES; 52 } 53 54 56 public Node.Cookie createCookie (Class clazz) { 57 58 return null; 66 } 67 68 69 73 public static final class Creator implements DTDDataObject.DTDCookieFactoryCreator { 74 75 77 public CookieFactory createCookieFactory (DataObject obj) { 78 return new DTDGenerateSupportFactory ((DTDDataObject) obj); 79 } 80 81 } 83 } 84 | Popular Tags |