public void save() { CategoryExplorerModel model = _monitor.getCategoryExplorerTree().getExplorerModel(); CategoryNode root = model.getRootCategoryNode(); StringBuffer xml = new StringBuffer(2048); openXMLDocument(xml); openConfigurationXML(xml); processLogRecordFilter(_monitor.getNDCTextFilter(), xml); processLogLevels(_monitor.getLogLevelMenuItems(), xml); processLogLevelColors(_monitor.getLogLevelMenuItems(), LogLevel.getLogLevelColorMap(), xml); processLogTableColumns(LogTableColumn.getLogTableColumns(), xml); processConfigurationNode(root, xml); closeConfigurationXML(xml); store(xml.toString()); }
private void processLogTableColumns(List logTableColumnMenuItems, StringBuffer xml) { xml.append("\t<logtablecolumns>\r\n"); Iterator it = logTableColumnMenuItems.iterator(); while (it.hasNext()) { LogTableColumn column = (LogTableColumn) it.next(); JCheckBoxMenuItem item = _monitor.getTableColumnMenuItem(column); exportLogTableColumnXMLElement(column.getLabel(), item.isSelected(), xml); } xml.append("\t</logtablecolumns>\r\n"); }