1 19 20 package org.netbeans.modules.xml.schema.core; 21 22 import org.openide.filesystems.*; 23 import org.openide.loaders.*; 24 import org.openide.util.NbBundle; 25 26 32 public class SchemaDataLoader extends UniFileLoader { 33 34 private static final long serialVersionUID = 3924626446133520078L; 35 36 public static final String MIME_TYPE = "application/x-schema+xml"; 38 41 public SchemaDataLoader() { 42 super("org.netbeans.modules.xml.schema.core.SchemaDataObject"); 44 } 45 46 protected String actionsContext() { 47 return "Loaders/text/x-schema+xml/Actions/"; 48 } 49 50 52 protected void initialize () { 53 super.initialize(); 54 55 ExtensionList ext = getExtensions(); 56 ext.addMimeType (MIME_TYPE); 57 setExtensions (ext); 58 } 59 60 63 protected String defaultDisplayName () { 64 return NbBundle.getMessage (SchemaDataLoader.class,"LBL_SchemaDataLoader_name"); 65 } 66 67 75 protected MultiDataObject createMultiObject (FileObject primaryFile) 76 throws DataObjectExistsException, java.io.IOException { 77 return new SchemaDataObject (primaryFile, this); 78 } 79 80 } 81 | Popular Tags |