1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders.ejbext; 20 21 import java.io.IOException ; 22 import org.openide.filesystems.FileObject; 23 import org.openide.loaders.DataObjectExistsException; 24 import org.openide.loaders.MultiDataObject; 25 import org.openide.loaders.UniFileLoader; 26 import org.openide.util.NbBundle; 27 28 public class WSEjbExtDataLoader extends UniFileLoader { 29 30 public static final String REQUIRED_MIME = "text/x-ejbext+xml"; 31 32 private static final long serialVersionUID = 1L; 33 34 public WSEjbExtDataLoader() { 35 super("org.netbeans.modules.j2ee.websphere6.ddloaders.ejbext.WSEjbExtDataObject"); 36 } 37 38 protected String defaultDisplayName() { 39 return NbBundle.getMessage(WSEjbExtDataLoader.class, "LBL_WSEjbExt_loader_name"); 40 } 41 42 protected void initialize() { 43 super.initialize(); 44 getExtensions().addMimeType(REQUIRED_MIME); 45 } 46 47 protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException { 48 return new WSEjbExtDataObject(primaryFile, this); 49 } 50 51 protected String actionsContext() { 52 return "Loaders/" + REQUIRED_MIME + "/Actions"; 53 } 54 55 } 56 | Popular Tags |