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