OSDN Git Service

プロセス実行中に終了ボタンを押せなくするよう変更
authorAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 10:22:38 +0000 (19:22 +0900)
committerAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 10:22:38 +0000 (19:22 +0900)
installer/IzPack/src/lib/com/izforge/izpack/panels/ProcessPanel.java

index 57508cf..3ee35e9 100644 (file)
@@ -1,17 +1,17 @@
 /*
  * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
- * 
+ *
  * http://izpack.org/
  * http://izpack.codehaus.org/
- * 
+ *
  * Copyright 2004 Tino Schwarze
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *     http://www.apache.org/licenses/LICENSE-2.0
- *     
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -153,6 +153,8 @@ public class ProcessPanel extends IzPanel implements AbstractUIProcessHandler
         overallProgressBar.setMaximum(no_of_jobs);
         overallProgressBar.setIndeterminate(true);
         parent.lockPrevButton();
+        // finish button release
+        parent.blockGUI();
     }
 
     /**
@@ -179,6 +181,9 @@ public class ProcessPanel extends IzPanel implements AbstractUIProcessHandler
 
         // set to finished only in case of success
         finishedWork = idata.installSuccess;
+
+        // finish button release
+        parent.releaseGUI();
     }
 
     /**