1 19 package org.netbeans.modules.xsl.scenario; 20 21 import org.netbeans.modules.xml.api.scenario.*; 22 23 30 public class FileXSLScenarioFactory implements ScenarioFactory { 31 32 33 public FileXSLScenarioFactory() { 34 } 35 36 40 public Scenario createScenario() { 41 return new FileXSLScenario(); 42 } 43 44 50 public boolean isEnabled(org.openide.loaders.DataObject dataObject) { 51 return (dataObject instanceof org.netbeans.modules.xsl.XSLDataObject); 52 } 53 54 58 public String getDescription() { 59 return Util.THIS.getString("NAME_file_scenario_factory_description"); 60 } 61 62 66 public String getName() { 67 return Util.THIS.getString("NAME_file_scenario_factory_name"); 68 } 69 70 73 public String toString() { 74 return getName(); 75 } 76 77 78 79 } 80 | Popular Tags |