Added FlatProjectView. Used it to create an 'All Issues' project in pit-swing.
Solves issue #11: pit-swing: Add a default, "all-projects" view.
This commit is contained in:
parent
f2f470ff2a
commit
cd7f14cb2d
@ -1,4 +1,4 @@
|
|||||||
<project name="Personal Issue Tracker">
|
<project name="Personal Issue Tracker" default="release">
|
||||||
<property file="../version.properties"/>
|
<property file="../version.properties"/>
|
||||||
<property file="project.properties"/>
|
<property file="project.properties"/>
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#Tue, 20 Apr 2010 13:49:35 -0500
|
#Sat Apr 24 17:08:00 CDT 2010
|
||||||
#Fri Feb 26 23:58:36 CST 2010
|
|
||||||
build.dir=build
|
build.dir=build
|
||||||
src.dir=src
|
src.dir=src
|
||||||
lib.shared.dir=../shared-libs
|
lib.shared.dir=../shared-libs
|
||||||
test.dir=test
|
test.dir=test
|
||||||
build.number=2
|
build.number=8
|
||||||
expected.application.version=2.2.0
|
expected.application.version=2.3.0
|
||||||
lib.dir=lib
|
lib.dir=lib
|
||||||
release.dir=release
|
release.dir=release
|
||||||
release.jar=pit-${application.version}.jar
|
release.jar=pit-${application.version}.jar
|
||||||
|
Binary file not shown.
BIN
libpit/release/pit-2.3.0.jar
Normal file
BIN
libpit/release/pit-2.3.0.jar
Normal file
Binary file not shown.
@ -1,10 +1,11 @@
|
|||||||
let SessionLoad = 1
|
let SessionLoad = 1
|
||||||
if &cp | set nocp | endif
|
if &cp | set nocp | endif
|
||||||
|
let s:cpo_save=&cpo
|
||||||
|
set cpo&vim
|
||||||
|
inoremap <Nul>
|
||||||
nmap v :call Screen_Vars()
|
nmap v :call Screen_Vars()
|
||||||
nmap vip
|
nmap vip
|
||||||
vmap "ry :call Send_to_Screen(@r)
|
vmap "ry :call Send_to_Screen(@r)
|
||||||
let s:cpo_save=&cpo
|
|
||||||
set cpo&vim
|
|
||||||
nmap gx <Plug>NetrwBrowseX
|
nmap gx <Plug>NetrwBrowseX
|
||||||
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
||||||
let &cpo=s:cpo_save
|
let &cpo=s:cpo_save
|
||||||
@ -47,7 +48,8 @@ badd +1 test/com/jdbernard/pit/FileIssueTest.groovy
|
|||||||
badd +1 src/com/jdbernard/pit/FileProject.groovy
|
badd +1 src/com/jdbernard/pit/FileProject.groovy
|
||||||
badd +1 test/com/jdbernard/pit/FileProjectTest.groovy
|
badd +1 test/com/jdbernard/pit/FileProjectTest.groovy
|
||||||
badd +1 src/com/jdbernard/pit/Status.groovy
|
badd +1 src/com/jdbernard/pit/Status.groovy
|
||||||
badd +0 test/com/jdbernard/pit/StatusTest.groovy
|
badd +1 test/com/jdbernard/pit/StatusTest.groovy
|
||||||
|
badd +5 src/com/jdbernard/pit/FlatProjectView.groovy
|
||||||
args build.xml
|
args build.xml
|
||||||
edit build.xml
|
edit build.xml
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
@ -157,7 +159,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -261,7 +263,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -378,7 +380,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -482,7 +484,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -599,12 +601,12 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 37 - ((36 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
37
|
1
|
||||||
normal! 065l
|
normal! 0
|
||||||
wincmd w
|
wincmd w
|
||||||
argglobal
|
argglobal
|
||||||
edit test/com/jdbernard/pit/StatusTest.groovy
|
edit test/com/jdbernard/pit/StatusTest.groovy
|
||||||
@ -703,7 +705,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -820,7 +822,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -924,7 +926,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1041,7 +1043,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1145,7 +1147,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1262,7 +1264,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 9 - ((6 * winheight(0) + 28) / 57)
|
let s:l = 9 - ((8 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1366,7 +1368,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1483,7 +1485,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1587,7 +1589,7 @@ setlocal nowinfixwidth
|
|||||||
setlocal wrap
|
setlocal wrap
|
||||||
setlocal wrapmargin=0
|
setlocal wrapmargin=0
|
||||||
silent! normal! zE
|
silent! normal! zE
|
||||||
let s:l = 1 - ((0 * winheight(0) + 28) / 57)
|
let s:l = 1 - ((0 * winheight(0) + 39) / 79)
|
||||||
if s:l < 1 | let s:l = 1 | endif
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
exe s:l
|
exe s:l
|
||||||
normal! zt
|
normal! zt
|
||||||
@ -1596,7 +1598,228 @@ normal! 0
|
|||||||
wincmd w
|
wincmd w
|
||||||
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
||||||
tabnext 3
|
tabedit src/com/jdbernard/pit/FlatProjectView.groovy
|
||||||
|
set splitbelow splitright
|
||||||
|
wincmd _ | wincmd |
|
||||||
|
vsplit
|
||||||
|
1wincmd h
|
||||||
|
wincmd w
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
|
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
||||||
|
argglobal
|
||||||
|
setlocal keymap=
|
||||||
|
setlocal noarabic
|
||||||
|
setlocal autoindent
|
||||||
|
setlocal balloonexpr=
|
||||||
|
setlocal nobinary
|
||||||
|
setlocal bufhidden=
|
||||||
|
setlocal buflisted
|
||||||
|
setlocal buftype=
|
||||||
|
setlocal nocindent
|
||||||
|
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
||||||
|
setlocal cinoptions=
|
||||||
|
setlocal cinwords=if,else,while,do,for,switch
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal expandtab
|
||||||
|
if &filetype != 'groovy'
|
||||||
|
setlocal filetype=groovy
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
setlocal foldmethod=manual
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=tcq
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=2
|
||||||
|
setlocal imsearch=2
|
||||||
|
setlocal include=
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=
|
||||||
|
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255
|
||||||
|
setlocal keywordprg=
|
||||||
|
setlocal nolinebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:]
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norightleft
|
||||||
|
setlocal rightleftcmd=search
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal swapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'groovy'
|
||||||
|
setlocal syntax=groovy
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
silent! normal! zE
|
||||||
|
let s:l = 26 - ((25 * winheight(0) + 39) / 79)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
26
|
||||||
|
normal! 061l
|
||||||
|
wincmd w
|
||||||
|
argglobal
|
||||||
|
edit src/com/jdbernard/pit/Project.groovy
|
||||||
|
setlocal keymap=
|
||||||
|
setlocal noarabic
|
||||||
|
setlocal autoindent
|
||||||
|
setlocal balloonexpr=
|
||||||
|
setlocal nobinary
|
||||||
|
setlocal bufhidden=
|
||||||
|
setlocal buflisted
|
||||||
|
setlocal buftype=
|
||||||
|
setlocal nocindent
|
||||||
|
setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
|
||||||
|
setlocal cinoptions=
|
||||||
|
setlocal cinwords=if,else,while,do,for,switch
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal expandtab
|
||||||
|
if &filetype != 'groovy'
|
||||||
|
setlocal filetype=groovy
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
setlocal foldmethod=manual
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=tcq
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=2
|
||||||
|
setlocal imsearch=2
|
||||||
|
setlocal include=
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=
|
||||||
|
setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255
|
||||||
|
setlocal keywordprg=
|
||||||
|
setlocal nolinebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:]
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norightleft
|
||||||
|
setlocal rightleftcmd=search
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal swapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'groovy'
|
||||||
|
setlocal syntax=groovy
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
silent! normal! zE
|
||||||
|
let s:l = 6 - ((5 * winheight(0) + 39) / 79)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
6
|
||||||
|
normal! 04l
|
||||||
|
wincmd w
|
||||||
|
exe 'vert 1resize ' . ((&columns * 91 + 91) / 182)
|
||||||
|
exe 'vert 2resize ' . ((&columns * 90 + 91) / 182)
|
||||||
|
tabnext 8
|
||||||
if exists('s:wipebuf')
|
if exists('s:wipebuf')
|
||||||
silent exe 'bwipe ' . s:wipebuf
|
silent exe 'bwipe ' . s:wipebuf
|
||||||
endif
|
endif
|
||||||
|
34
libpit/src/com/jdbernard/pit/FlatProjectView.groovy
Normal file
34
libpit/src/com/jdbernard/pit/FlatProjectView.groovy
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
package com.jdbernard.pit;
|
||||||
|
|
||||||
|
public class FlatProjectView extends Project {
|
||||||
|
|
||||||
|
public FlatProjectView(String name) { super(name); }
|
||||||
|
|
||||||
|
public Issue createNewIssue(Map options) {
|
||||||
|
throw new UnsupportedOperationException("The FlatProjectView is " +
|
||||||
|
"read-only.")
|
||||||
|
}
|
||||||
|
|
||||||
|
public Project createNewProject(String name) {
|
||||||
|
throw new UnsupportedOperationException("The FlatProjectView is " +
|
||||||
|
"read-only.")
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean delete() { return true };
|
||||||
|
|
||||||
|
public void eachIssue(Filter filter = null, Closure closure) {
|
||||||
|
def sorter = filter?.issueSorter ?: Filter.defaultIssueSorter
|
||||||
|
def gatherIssues
|
||||||
|
def gatheredIssues = []
|
||||||
|
|
||||||
|
gatherIssues = { project, f ->
|
||||||
|
project.eachIssue(f) { gatheredIssues << it };
|
||||||
|
project.eachProject(f) { gatherIssues(it, f) }
|
||||||
|
}
|
||||||
|
for (p in projects.values())
|
||||||
|
if (!filter || filter.accept(p))
|
||||||
|
gatherIssues(p, filter)
|
||||||
|
|
||||||
|
gatheredIssues.sort(sorter).each(closure)
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,6 @@
|
|||||||
#Do not edit app.griffon.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place!
|
#Do not edit app.griffon.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place!
|
||||||
#Tue, 20 Apr 2010 11:38:07 -0500
|
#Sat Apr 24 11:16:28 CDT 2010
|
||||||
#utf-8
|
|
||||||
#Wed Mar 10 12:10:54 CST 2010
|
|
||||||
app.version=2.2.0
|
app.version=2.2.0
|
||||||
plugins.fest=0.3
|
plugins.fest=0.3
|
||||||
app.griffon.version=0.3
|
app.griffon.version=0.2.1
|
||||||
app.name=pit-swing
|
app.name=pit-swing
|
||||||
|
@ -2,6 +2,7 @@ package com.jdbernard.pit.swing
|
|||||||
|
|
||||||
import com.jdbernard.pit.Category
|
import com.jdbernard.pit.Category
|
||||||
import com.jdbernard.pit.FileProject
|
import com.jdbernard.pit.FileProject
|
||||||
|
import com.jdbernard.pit.FlatProjectView
|
||||||
import com.jdbernard.pit.Issue
|
import com.jdbernard.pit.Issue
|
||||||
import com.jdbernard.pit.Project
|
import com.jdbernard.pit.Project
|
||||||
import com.jdbernard.pit.Status
|
import com.jdbernard.pit.Status
|
||||||
@ -62,11 +63,13 @@ class ProjectPanelController {
|
|||||||
|
|
||||||
void refreshProject() {
|
void refreshProject() {
|
||||||
if (model.rootProject) {
|
if (model.rootProject) {
|
||||||
view.projectTree.rootVisible = model.rootProject.issues.size()
|
def rootNode = new DefaultMutableTreeNode()
|
||||||
view.projectTree.model = new DefaultTreeModel(
|
def flatview = new FlatProjectView('All Issues')
|
||||||
makeNodes(model.rootProject))
|
flatview.projects[(model.rootProject.name)] = model.rootProject
|
||||||
|
rootNode.add(new DefaultMutableTreeNode(flatview))
|
||||||
|
rootNode.add(makeNodes(model.rootProject))
|
||||||
|
view.projectTree.model = new DefaultTreeModel(rootNode)
|
||||||
} else {
|
} else {
|
||||||
projectTree.rootVisible = false
|
|
||||||
view.projectTree.model = new DefaultTreeModel(
|
view.projectTree.model = new DefaultTreeModel(
|
||||||
new DefaultMutableTreeNode())
|
new DefaultMutableTreeNode())
|
||||||
}
|
}
|
||||||
@ -96,8 +99,7 @@ class ProjectPanelController {
|
|||||||
def newProject = project.createNewProject(name)
|
def newProject = project.createNewProject(name)
|
||||||
|
|
||||||
project.projects[(newProject.name)] = newProject
|
project.projects[(newProject.name)] = newProject
|
||||||
view.projectTree.model = new DefaultTreeModel(
|
refreshProject()
|
||||||
makeNodes(model.rootProject))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def deleteProject = { evt ->
|
def deleteProject = { evt ->
|
||||||
|
@ -3,6 +3,7 @@ package com.jdbernard.pit.swing
|
|||||||
import com.jdbernard.pit.Category
|
import com.jdbernard.pit.Category
|
||||||
import com.jdbernard.pit.Status
|
import com.jdbernard.pit.Status
|
||||||
import com.jdbernard.pit.Project
|
import com.jdbernard.pit.Project
|
||||||
|
import com.jdbernard.pit.FlatProjectView
|
||||||
import java.awt.Font
|
import java.awt.Font
|
||||||
import java.awt.GridBagConstraints as GBC
|
import java.awt.GridBagConstraints as GBC
|
||||||
import java.awt.Point
|
import java.awt.Point
|
||||||
@ -138,12 +139,15 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
|||||||
model: bind(source: model, sourceProperty: 'rootProject',
|
model: bind(source: model, sourceProperty: 'rootProject',
|
||||||
sourceValue: {
|
sourceValue: {
|
||||||
if (model.rootProject) {
|
if (model.rootProject) {
|
||||||
projectTree.rootVisible =
|
def rootNode = new DefaultMutableTreeNode()
|
||||||
model.rootProject.issues.size()
|
def flatview = new FlatProjectView('All Issues')
|
||||||
new DefaultTreeModel(controller.makeNodes(
|
flatviews.projects[(model.rootProject.name)] =
|
||||||
model.rootProject))
|
model.rootProject
|
||||||
|
rootNode.add(new DefaultMutableTreeNode(flatview))
|
||||||
|
rootNode.add(controller.makeNodes(model.rootProject))
|
||||||
|
new DefaultTreeModel(rootNode)
|
||||||
|
return rootNode
|
||||||
} else {
|
} else {
|
||||||
projectTree.rootVisible = false
|
|
||||||
new DefaultTreeModel(new DefaultMutableTreeNode())
|
new DefaultTreeModel(new DefaultMutableTreeNode())
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
@ -160,6 +164,7 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
|||||||
evt.x, evt.y)
|
evt.x, evt.y)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
projectTree.rootVisible = false
|
||||||
|
|
||||||
projectTree.selectionModel.selectionMode =
|
projectTree.selectionModel.selectionMode =
|
||||||
TreeSelectionModel.SINGLE_TREE_SELECTION
|
TreeSelectionModel.SINGLE_TREE_SELECTION
|
||||||
|
Binary file not shown.
BIN
pit-swing/lib/pit-2.3.0.jar
Normal file
BIN
pit-swing/lib/pit-2.3.0.jar
Normal file
Binary file not shown.
@ -28,7 +28,7 @@
|
|||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="Griffon 0.3" level="project" />
|
<orderEntry type="library" name="Griffon 0.2.1" level="project" />
|
||||||
<orderEntry type="module-library">
|
<orderEntry type="module-library">
|
||||||
<library name="Griffon User Library">
|
<library name="Griffon User Library">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
|
@ -10,47 +10,53 @@
|
|||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
<component name="libraryTable">
|
<component name="libraryTable">
|
||||||
<library name="Griffon 0.3">
|
<library name="Griffon 0.2.1">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/log4j-1.2.15.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/swingx-0.9.3.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/spring-2.5.6.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/swing-worker.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/ant-trax-1.8.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/commons-lang-2.4.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/gant_groovy1.6-1.6.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-launcher-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/svnkit-1.2.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/gant_groovy1.6-1.6.0.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/junit-4.8.1.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/asm-2.2.3.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/commons-cli-1.2.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/commons-cli-1.0.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/ant-nodeps-1.8.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/groovy-all-1.6.4.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/groovy-all-1.7.1.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/swingxbuilder-0.1.6-SNAPSHOT.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/commons-lang-2.4.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/jline-0.9.94.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/ant-junit-1.8.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/svnkit-1.2.0.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/jline-0.9.94.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/log4j-1.2.15.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/ant-launcher-1.8.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-nodeps-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/commons-logging-1.1.1.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/asm-3.2.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-trax-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/lib/ant-1.8.0.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/commons-logging-1.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/dist/griffon-resources-0.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/ant-junit-1.7.1.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/dist/griffon-cli-0.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/MultipleGradientPaint.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/dist/griffon-rt-0.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/spring-2.5.6.jar!/" />
|
||||||
|
|
||||||
<root url="jar:///home/jdbernard/programs/griffon/dist/griffon-scripts-0.3.jar!/" />
|
<root url="jar:///usr/share/griffon/lib/junit-3.8.2.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/dist/griffon-rt-0.2.1.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/dist/griffon-resources-0.2.1.jar!/" />
|
||||||
|
|
||||||
|
<root url="jar:///usr/share/griffon/dist/griffon-cli-0.2.1.jar!/" />
|
||||||
|
|
||||||
|
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
|
Binary file not shown.
BIN
release/lib/pit-2.3.0.jar
Normal file
BIN
release/lib/pit-2.3.0.jar
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
application.version=2.2.0
|
application.version=2.3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user