1 19 20 package org.netbeans.modules.autoupdate; 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 30 34 public final class NbmDataLoader extends UniFileLoader { 35 36 37 static final long serialVersionUID=-3599951493531214988L; 38 39 public NbmDataLoader () { 40 super ("org.netbeans.modules.autoupdate.NbmDataObject"); } 42 43 protected void initialize () { 44 45 super.initialize (); 46 47 ExtensionList extensions = new ExtensionList (); 48 extensions.addExtension ("nbm"); setExtensions (extensions); 50 } 51 52 protected String actionsContext () { 53 return "Loaders/application/x-nbm/Actions/"; } 55 56 59 protected String defaultDisplayName () { 60 return NbBundle.getMessage (NbmDataLoader.class, "LBL_loaderName"); 61 } 62 63 protected MultiDataObject createMultiObject (FileObject primaryFile) 64 throws DataObjectExistsException, IOException { 65 return new NbmDataObject (primaryFile, this); 66 } 67 68 } 69 | Popular Tags |