privateval tree = new Tree_View(single_selection_mode = true, accessible_name = "Documentation") { overridedef handle_selection(path: TreePath): Unit = for (entry <- get_selection(path, { case x: Doc.Entry => x })) {
PIDE.editor.goto_doc(view, entry.path, focus = true)
}
}
for (section <- doc_contents.sections) {
tree.root.add(Tree_View.Node(section.title)) val last_node = tree.root.getLastChild.asInstanceOf[Tree_View.Node] for (entry <- section.entries) last_node.add(Tree_View.Node(entry))
}
overridedef focusOnDefaultComponent(): Unit = tree.requestFocusInWindow
{ var expand = true var visible = 0 var row = 0 def make_visible(): Unit = { visible += 1; tree.expandRow(row) } for (section <- doc_contents.sections) {
expand = section.important
make_visible()
row += 1 for (_ <- section.entries) { if (expand) make_visible()
row += 1
}
}
tree.setRootVisible(false)
tree.setVisibleRowCount(visible)
}
privateval tree_scroller = new JScrollPane(tree)
tree_scroller.setMinimumSize(new Dimension(200, 50))
set_content(tree_scroller)
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.