Javac checker: make checker-specific commands available at startup.
This commit is contained in:
parent
3fb986584a
commit
1be907716e
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-154'
|
let g:_SYNTASTIC_VERSION = '3.6.0-155'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
@ -196,6 +196,9 @@ command! SyntasticReset call SyntasticReset()
|
|||||||
command! SyntasticToggleMode call SyntasticToggleMode()
|
command! SyntasticToggleMode call SyntasticToggleMode()
|
||||||
command! SyntasticSetLoclist call SyntasticSetLoclist()
|
command! SyntasticSetLoclist call SyntasticSetLoclist()
|
||||||
|
|
||||||
|
command! SyntasticJavacEditClasspath runtime! syntax_checkers/java/*.vim | SyntasticJavacEditClasspath
|
||||||
|
command! SyntasticJavacEditConfig runtime! syntax_checkers/java/*.vim | SyntasticJavacEditConfig
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
|
||||||
" Public API {{{1
|
" Public API {{{1
|
||||||
|
@ -84,11 +84,12 @@ lockvar! s:_FILE_SHORTCUTS
|
|||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
|
||||||
command! SyntasticJavacEditClasspath call s:EditClasspath()
|
" Commands {{{1
|
||||||
|
|
||||||
if g:syntastic_java_javac_config_file_enabled
|
command! SyntasticJavacEditClasspath call s:EditClasspath()
|
||||||
command! SyntasticJavacEditConfig call s:EditConfig()
|
command! SyntasticJavacEditConfig call s:EditConfig()
|
||||||
endif
|
|
||||||
|
" }}}1
|
||||||
|
|
||||||
function! SyntaxCheckers_java_javac_IsAvailable() dict " {{{1
|
function! SyntaxCheckers_java_javac_IsAvailable() dict " {{{1
|
||||||
let s:has_maven = executable(expand(g:syntastic_java_maven_executable, 1))
|
let s:has_maven = executable(expand(g:syntastic_java_maven_executable, 1))
|
||||||
@ -289,6 +290,10 @@ function! s:SaveConfig() " {{{2
|
|||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
function! s:EditConfig() " {{{2
|
function! s:EditConfig() " {{{2
|
||||||
|
if !g:syntastic_java_javac_config_file_enabled
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let command = 'syntastic javac config'
|
let command = 'syntastic javac config'
|
||||||
let winnr = bufwinnr('^' . command . '$')
|
let winnr = bufwinnr('^' . command . '$')
|
||||||
if winnr < 0
|
if winnr < 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user