>Well,  I think I found it, although I don't quite understand what's going
>on.  The following code:

>(defun my-java-hook ()
>  "My local settings for Java"
>  (c-set-style "java")
>  (c-set-offset 'substatement-open 0)
>  )
>(setq java-mode-hook 'my-java-hook)

>appeared to disable Senator-minor-mode, which resulted in the java source
>not being parsed (I'm assuming), which in turn resulted in the *ECB Methods*
>window not being populated.

>Can anyone explain this?

Yes, i can. All your assuming go into wrong direction, parsing a buffer
has nothing to do with senator-minor-mode.

This is the wrong statement: (setq java-mode-hook 'my-java-hook)
Change this to (add-hook 'java-mode-hook 'my-java-hook)
and all is working. 
Reason: Semantic and JDE add both also functions to 'java-mode-hook and they
do this before you add 'my-java-hook. Or, let�s wait, "add" is the wrong phrase
for this what you do. With setq you don not add a function to the hook but you
overwrite the old value and set only your function to the hook.

The java-mode-hook must at least contain
(jde-setup-syntax-coloring semantic-default-java-setup), if semantic and JDE
are correct set up. The function 'semantic-default-java-setup for example
does all necessary, that java-buffers will be parsed.

If you add functions to a hook, you MUST always use add-hook instead of setq!!

Hope this helps,
Klaus

Reply via email to