jFD2 at SOFTWARE
[2ch|▼Menu]
118:26
07/12/18 01:00:04 pCajsuCN0
>>109
修正版です。groovy結構面白い。

import javax.swing.BoxLayout
import com.nullfish.app.jfd2.ext_command.CommandExecuter
dlg=new groovy.swing.SwingBuilder().dialog(title:"svn update ...doing"){
box(axis:BoxLayout.Y_AXIS){
scrollPane(){
ta=textArea(rows:15,columns:60)
}
btn=button(text:"OK",visible:false,actionPerformed:{dlg.dispose()})
}
}
dlg.pack()
dlg.setLocationRelativeTo(null)
dlg.setVisible(true)
model=jfd.getModel()
files = model.getMarkedFiles()
if(files == null || files.length == 0){
files = [model.getSelectedFile()]
}
cmd=files.inject("svn update "){s,f->s+='"'+f.getName()+'" '}
ta.append(cmd+"\n")
CommandExecuter.getInstance()
.exec(cmd,CommandExecuter.USE_APP_SHELL,new File(model.getCurrentDirectory().getAbsolutePath()))
.in.eachLine{ta.append(it+"\n")}
dlg.title="svn update ...done"
btn.setVisible(true)
btn.requestFocusInWindow()


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4796日前に更新/169 KB
担当:undef