1 19 20 package org.netbeans.modules.web.jsf; 21 22 import java.io.IOException ; 23 24 import org.openide.actions.*; 25 import org.openide.filesystems.*; 26 import org.openide.loaders.*; 27 import org.openide.util.NbBundle; 28 import org.openide.util.actions.SystemAction; 29 31 35 public class JSFConfigLoader extends UniFileLoader { 36 private static final String REQUIRED_MIME = "text/x-jsf+xml"; 38 public JSFConfigLoader() { 39 this("org.netbeans.modules.web.jsf.JSFConfigLoader"); 40 } 41 42 protected JSFConfigLoader(String recognizedObjectClass) { 44 super(recognizedObjectClass); 45 } 46 47 protected String defaultDisplayName() { 48 return NbBundle.getMessage(JSFConfigLoader.class, "LBL_loaderName"); 49 } 50 51 protected void initialize() { 52 53 super.initialize(); 54 getExtensions().addMimeType(REQUIRED_MIME); 55 } 56 57 protected String actionsContext() { 58 return "Loaders/text/x-jsf+xml/Actions/"; } 60 61 protected MultiDataObject createMultiObject(FileObject primaryFile) 62 throws DataObjectExistsException, IOException { 63 return new JSFConfigDataObject(primaryFile, this); 64 } 65 } 66 | Popular Tags |