1 19 20 package org.netbeans.modules.websvc.wsdl; 21 22 import java.io.IOException ; 23 24 import org.openide.loaders.ExtensionList; 25 import org.openide.loaders.UniFileLoader; 26 import org.openide.loaders.MultiDataObject; 27 import org.openide.loaders.DataObjectExistsException; 28 import org.openide.filesystems.FileObject; 29 import org.openide.util.NbBundle; 30 31 35 public class WsdlDataLoader extends UniFileLoader { 36 37 private static final String WSDL_MIME_TYPE = "text/xml-wsdl"; 39 public WsdlDataLoader() { 40 super("org.netbeans.modules.websvc.wsdl.WsdlDataObject"); } 42 43 protected void initialize() { 44 super.initialize(); 45 46 ExtensionList ext = new ExtensionList(); 47 ext.addMimeType(WSDL_MIME_TYPE); 48 setExtensions(ext); 49 } 50 51 protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException { 52 return new WsdlDataObject(primaryFile, this); 53 } 54 55 protected String defaultDisplayName() { 56 return NbBundle.getBundle(WsdlDataLoader.class).getString("LBL_WsdlLoader_Name"); } 58 59 protected String actionsContext() { 60 return "Loaders/text/wsdl/Actions/"; } 62 } 63 | Popular Tags |