1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders.ejbbnd; 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 WSEjbBndDataLoader extends UniFileLoader { 29 30 public static final String REQUIRED_MIME = "text/x-ejbbnd+xml"; 31 32 private static final long serialVersionUID = 1L; 33 34 public WSEjbBndDataLoader() { 35 super("org.netbeans.modules.j2ee.websphere6.ddloaders.ejbbnd.WSEjbBndDataObject"); 36 } 37 38 protected String defaultDisplayName() { 39 return NbBundle.getMessage(WSEjbBndDataLoader.class, "LBL_WSEjbBnd_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 WSEjbBndDataObject(primaryFile, this); 49 } 50 51 protected String actionsContext() { 52 return "Loaders/" + REQUIRED_MIME + "/Actions"; 53 } 54 55 } 56 | Popular Tags |