jFD2
at SOFTWARE
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