1 19 20 package org.netbeans.modules.html; 21 22 import java.io.IOException ; 23 import org.openide.loaders.UniFileLoader; 24 import org.openide.loaders.MultiDataObject; 25 import org.openide.loaders.DataObjectExistsException; 26 import org.openide.filesystems.FileObject; 27 import org.openide.util.NbBundle; 28 29 34 public class HtmlLoader extends UniFileLoader { 35 36 private static final long serialVersionUID = -5809935261731217882L; 37 38 public HtmlLoader() { 39 super("org.netbeans.modules.html.HtmlDataObject"); } 41 42 protected void initialize() { 43 super.initialize(); 44 getExtensions().addMimeType("text/html"); } 46 47 protected MultiDataObject createMultiObject(final FileObject primaryFile) 48 throws DataObjectExistsException, IOException { 49 return new HtmlDataObject(primaryFile, this); 50 } 51 52 55 protected String defaultDisplayName() { 56 return NbBundle.getMessage(HtmlLoader.class, "PROP_HtmlLoader_Name"); 57 } 58 59 protected String actionsContext() { 60 return "Loaders/text/html/Actions/"; } 62 63 } 64 | Popular Tags |