public void mapFile(string fileToMap) { loadedFile = fileToMap; var webXml = J2eeConfigFiles.getWebXml(fileToMap); this.invokeOnThread(() => refreshView(webXml)); }
public static IStrutsMappings calculateStrutsMapping(string webXmlFile, string strutsConfigFile, string tilesDefinitionsFile, string validationXmlFile) { var webXml = J2eeConfigFiles.getWebXml(webXmlFile); if (webXml == null) { return(null); } var tilesDefinitions = J2eeConfigFiles.getTilesDefinitionXml(tilesDefinitionsFile); var validation = J2eeConfigFiles.getValidationXml(validationXmlFile); var strutsConfig = J2eeConfigFiles.getStrutsConfig(strutsConfigFile, tilesDefinitions, validation); if (strutsConfig == null) { return(null); } return(calculateStrutsMapping(webXml, strutsConfig)); }