1 19 20 package org.netbeans.modules.j2ee.sun.ws7.serverresources.loaders; 21 22 import java.io.IOException ; 23 import org.openide.filesystems.FileObject; 24 import org.openide.loaders.DataObjectExistsException; 25 import org.openide.loaders.ExtensionList; 26 import org.openide.loaders.MultiDataObject; 27 import org.openide.loaders.UniFileLoader; 28 import org.openide.util.NbBundle; 29 import org.netbeans.modules.j2ee.sun.ws7.serverresources.wizards.WS70WizardConstants; 30 31 36 public class SunWS70ResourceDataLoader extends UniFileLoader { 37 38 private static final long serialVersionUID = 1L; 39 40 public SunWS70ResourceDataLoader() { 41 this("org.netbeans.modules.j2ee.sun.ws7.serverresources.loaders.SunWS70ResourceDataObject"); } 43 44 protected SunWS70ResourceDataLoader(String recognizedObjectClass) { 46 super(recognizedObjectClass); 47 } 48 49 protected String defaultDisplayName() { 50 return NbBundle.getMessage(SunWS70ResourceDataLoader.class, "LBL_loaderName"); } 52 53 protected void initialize() { 54 super.initialize(); 55 56 ExtensionList extensions = new ExtensionList(); 57 extensions.addExtension(WS70WizardConstants.__SunResourceExt); 58 setExtensions(extensions); 59 } 60 61 protected String actionsContext () { 62 return "Loaders/xml/sun-ws7-resource/Actions/"; } 64 65 protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException { 66 return new SunWS70ResourceDataObject(primaryFile, this); 67 } 68 69 } 70 | Popular Tags |