예제 #1
0
 public void mapFile(string fileToMap)
 {
     if (File.Exists(fileToMap))
     {
         loadedFile = fileToMap;
         var strutsConfigXml = J2eeConfigFiles.getStrutsConfig(fileToMap);
         tableList_FormBeans.setDataTable(CreateDataTable_Local.fromGenericList(strutsConfigXml.formBeans));
         tableList_GlobalForwards.setDataTable(CreateDataTable.fromDictionary_StringString(strutsConfigXml.globalForwards, "name", "path"));
         tableList_ActionMappings.setDataTable(CreateDataTable_Local.fromGenericList(strutsConfigXml.actionmappings));
         tableList_PlugIns.setDataTable(CreateDataTable_Local.fromGenericList(strutsConfigXml.plugIns));
         //lbDescription.Text = webXml.description;
         //lbDisplayName.Text = webXml.displayName;
         //tableList_Filter.setDataTable(CreateDataTable.fromGenericList(webXml.filters));
         //tableList_FilterMappings.setDataTable(CreateDataTable.fromGenericList(webXml.filterMappings));
         //tableList_Servlets.setDataTable(CreateDataTable.fromGenericList(webXml.servlets));
         //tableList_ServletMappings.setDataTable(CreateDataTable.fromGenericList(webXml.servletMappings));
     }
 }
        private void updateDependenciesFlatList(Dictionary <string, string> dependencies)
        {
            tbDependenciesFlatList.invokeOnThread(
                () =>
            {
                var dependenciesText = new StringBuilder();
                tableListWithDependencies.setDataTable(CreateDataTable.fromDictionary_StringString(dependencies, "name", "location"));

                foreach (var dependency in dependencies)
                {
                    var splittedname = dependency.Key.Split(',');
                    if (splittedname.Count() > 0)
                    {
                        dependenciesText.AppendFormat("{0}          ( {1} )     : {2}\n", splittedname[0], dependency, dependency.Value);
                    }
                }
                tbDependenciesFlatList.Text = dependenciesText.ToString();
            });
        }