Function: wisent-java-default-setup
wisent-java-default-setup is an autoloaded and byte-compiled function
defined in java-tags.el.gz.
Signature
(wisent-java-default-setup)
Documentation
Hook run to setup Semantic in java-mode.
Use the alternate LALR(1) parser.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/java-tags.el.gz
;;;###autoload
(defun wisent-java-default-setup ()
"Hook run to setup Semantic in `java-mode'.
Use the alternate LALR(1) parser."
(wisent-java-tags-wy--install-parser)
(setq
;; Lexical analysis
semantic-lex-number-expression semantic-java-number-regexp
semantic-lex-analyzer #'wisent-java-tags-lexer
;; Parsing
semantic-tag-expand-function #'semantic-java-expand-tag
;; Environment
semantic-imenu-summary-function #'semantic-format-tag-prototype
semantic--create-index-function-origin imenu-create-index-function
imenu-create-index-function #'semantic-create-imenu-index
semantic-type-relation-separator-character '(".")
semantic-command-separation-character ";"
;; speedbar and imenu buckets name
semantic-symbol->name-assoc-list-for-type-parts
;; in type parts
'((type . "Classes")
(variable . "Variables")
(function . "Methods"))
semantic-symbol->name-assoc-list
;; everywhere
(append semantic-symbol->name-assoc-list-for-type-parts
'((include . "Imports")
(package . "Package")))
;; navigation inside 'type children
senator-step-at-tag-classes '(function variable)
;; Remove 'recursive from the default semanticdb find throttle
;; since java imports never recurse.
semanticdb-find-default-throttle
(remq 'recursive (default-value 'semanticdb-find-default-throttle))
)
;; Setup javadoc stuff
(semantic-java-doc-setup))