1 19 package org.netbeans.modules.xsl; 20 21 22 import org.openide.filesystems.*; 23 import org.openide.loaders.*; 24 25 import org.netbeans.modules.xml.core.XMLDataLoader; 26 27 32 public final class XSLDataLoader extends UniFileLoader { 33 34 private static final long serialVersionUID = 6494980346565290872L; 35 36 37 public XSLDataLoader() { 38 super ("org.netbeans.modules.xsl.XSLDataObject"); } 40 41 43 protected void initialize () { 44 super.initialize(); 45 46 ExtensionList ext = getExtensions(); 47 ext.addMimeType (XSLDataObject.MIME_TYPE); 48 setExtensions (ext); 49 } 50 51 protected String actionsContext() { 52 return "Loaders/application/xslt+xml/Actions/"; } 54 55 58 protected String defaultDisplayName () { 59 return Util.THIS.getString ("NAME_XSLDataLoader"); 60 } 61 62 67 protected MultiDataObject.Entry createPrimaryEntry (MultiDataObject obj, FileObject primaryFile) { 68 return new XMLDataLoader.XMLFileEntry (obj, primaryFile); } 70 71 79 protected MultiDataObject createMultiObject (FileObject primaryFile) 80 throws DataObjectExistsException, java.io.IOException { 81 return new XSLDataObject (primaryFile, this); 82 } 83 84 } 85 | Popular Tags |