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