Examples of CategoryExplorerTree


Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree

/*     */     }
/* 183 */     this._monitor.setNDCLogRecordFilter(text);
/*     */   }
/*     */
/*     */   protected void processCategories(Document doc) {
/* 187 */     CategoryExplorerTree tree = this._monitor.getCategoryExplorerTree();
/* 188 */     CategoryExplorerModel model = tree.getExplorerModel();
/* 189 */     NodeList nodeList = doc.getElementsByTagName("category");
/*     */
/* 192 */     NamedNodeMap map = nodeList.item(0).getAttributes();
/* 193 */     int j = getValue(map, "name").equalsIgnoreCase("Categories") ? 1 : 0;
/*     */
/* 196 */     for (int i = nodeList.getLength() - 1; i >= j; i--) {
/* 197 */       Node n = nodeList.item(i);
/* 198 */       map = n.getAttributes();
/* 199 */       CategoryNode chnode = model.addCategory(new CategoryPath(getValue(map, "path")));
/* 200 */       chnode.setSelected(getValue(map, "selected").equalsIgnoreCase("true"));
/* 201 */       if (getValue(map, "expanded").equalsIgnoreCase("true"));
/* 202 */       tree.expandPath(model.getTreePathToRoot(chnode));
/*     */     }
/*     */   }
View Full Code Here

Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree

/* 292 */     return n.getNodeValue();
/*     */   }
/*     */
/*     */   protected void collapseTree()
/*     */   {
/* 297 */     CategoryExplorerTree tree = this._monitor.getCategoryExplorerTree();
/* 298 */     for (int i = tree.getRowCount() - 1; i > 0; i--)
/* 299 */       tree.collapseRow(i);
/*     */   }
View Full Code Here

Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree

/*     */   private void closeConfigurationXML(StringBuffer xml) {
/* 417 */     xml.append("</configuration>\r\n");
/*     */   }
/*     */
/*     */   private void exportXMLElement(CategoryNode node, TreePath path, StringBuffer xml) {
/* 421 */     CategoryExplorerTree tree = this._monitor.getCategoryExplorerTree();
/*     */
/* 423 */     xml.append("\t<").append("category").append(" ");
/* 424 */     xml.append("name").append("=\"").append(node.getTitle()).append("\" ");
/* 425 */     xml.append("path").append("=\"").append(treePathToString(path)).append("\" ");
/* 426 */     xml.append("expanded").append("=\"").append(tree.isExpanded(path)).append("\" ");
/* 427 */     xml.append("selected").append("=\"").append(node.isSelected()).append("\"/>\r\n");
/*     */   }
View Full Code Here

Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree

/*  521 */     tableViewerSplitPane.setLeftComponent(this._logTableScrollPane);
/*  522 */     tableViewerSplitPane.setRightComponent(detailTAScrollPane);
/*      */
/*  530 */     tableViewerSplitPane.setDividerLocation(350);
/*      */
/*  536 */     this._categoryExplorerTree = new CategoryExplorerTree();
/*      */
/*  538 */     this._table.getFilteredLogTableModel().setLogRecordFilter(createLogRecordFilter());
/*      */
/*  540 */     JScrollPane categoryExplorerTreeScrollPane = new JScrollPane(this._categoryExplorerTree);
/*      */
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.