• R/O
  • SSH
  • HTTPS

wccftb: 提交


Commit MetaInfo

修訂23 (tree)
時間2018-06-11 09:34:20
作者fenrir_wolf

Log Message

(empty log message)

Change Summary

差異

--- src/in/lapin/fenrir/WCCF/MainControl.java (revision 22)
+++ src/in/lapin/fenrir/WCCF/MainControl.java (revision 23)
@@ -175,10 +175,10 @@
175175 }
176176
177177 if (logger == null) {
178- deleteDirectory("wccftb.log");
178+ //deleteDirectory("wccftb.log");
179179 //singleton
180180 logger = Logger.getLogger(MainControl.class.getName());
181- Handler handler = new FileHandler("PerManSurfer.log");
181+ Handler handler = new FileHandler("wccftb.log");
182182 logger.addHandler(handler);
183183 Formatter formatter = new SimpleFormatter();
184184 handler.setFormatter(formatter);
@@ -1484,4 +1484,13 @@
14841484 }
14851485 file.delete();
14861486 }
1487+ public void startTime() {
1488+ printTime("start");
1489+ }
1490+ public void endTime() {
1491+ printTime("end");
1492+ }
1493+ private void printTime(String head) {
1494+ getLogger().info(head + " time : " + new SimpleDateFormat("Y/M/D H:m:s S").format(new Date()));
1495+ }
14871496 }
--- src/in/lapin/fenrir/WCCF/MainFrame.java (revision 22)
+++ src/in/lapin/fenrir/WCCF/MainFrame.java (revision 23)
@@ -688,6 +688,7 @@
688688 button.setBounds(596, 482, 70, 22);
689689 button.addSelectionListener(new SelectionAdapter() {
690690 public void widgetSelected(SelectionEvent e) {
691+
691692 List<Player> ar = MainFrame.mcont.search(
692693 combo.getText()
693694 , text.getText()
@@ -737,7 +738,6 @@
737738 MainFrame.mcont.getRf().open(ar, MainFrame.mcont);
738739 } else {
739740 MainFrame.mcont.getRf().setAr(ar);
740- MainFrame.mcont.getRf().removeData();
741741 MainFrame.mcont.getRf().displayData();
742742 MainFrame.mcont.getRf().shell.forceActive();
743743 }
--- src/in/lapin/fenrir/WCCF/ResponceFrame.java (revision 22)
+++ src/in/lapin/fenrir/WCCF/ResponceFrame.java (revision 23)
@@ -315,7 +315,9 @@
315315 col22 = addColumn("PK", 40);
316316
317317 displayData();
318+ mcont.startTime();
318319 autoResizeColumn();
320+ mcont.endTime();
319321 }
320322
321323 public void widgetSelected(SelectionEvent e) {
Show on old repository browser