|
From: <bma...@us...> - 2013-07-29 10:31:10
|
Revision: 8454
http://sourceforge.net/p/fudaa/svn/8454
Author: bmarchan
Date: 2013-07-29 10:31:07 +0000 (Mon, 29 Jul 2013)
Log Message:
-----------
Suppression des log ds assistance.log
Modified Paths:
--------------
trunk/framework/ctulu-bu/src/main/java/com/memoire/bu/BuAssistant.java
Modified: trunk/framework/ctulu-bu/src/main/java/com/memoire/bu/BuAssistant.java
===================================================================
--- trunk/framework/ctulu-bu/src/main/java/com/memoire/bu/BuAssistant.java 2013-07-29 09:34:22 UTC (rev 8453)
+++ trunk/framework/ctulu-bu/src/main/java/com/memoire/bu/BuAssistant.java 2013-07-29 10:31:07 UTC (rev 8454)
@@ -716,11 +716,8 @@
private static String logfileName()
{
- String f="assistance.log";
- if(FuLib.isUnix())
- f=FuLib.getUserHome()+
- File.separator+
- f;
+ String f = "assistance.log";
+ f = FuLib.getUserHome() + File.separator + f;
return f;
}
@@ -736,7 +733,7 @@
if(info==null) info="";
- if(log_==null)
+ if(log_==null && isLog_)
{
try
{
@@ -747,7 +744,7 @@
catch(Throwable th) { } //IOException ex) { }
}
- if(log_!=null)
+ if(log_!=null && isLog_)
{
String t=_evt.getActionCommand();
if(source instanceof JCheckBox)
@@ -1131,6 +1128,15 @@
{ return use_; }
public synchronized void setUseCommentWindow(boolean _use)
{ use_=_use; }
+
+ private boolean isLog_=false;
+ /**
+ * Defines that something is write to assistance.log
+ * @param _b True : Log, false : No log.
+ */
+ public void setLog(boolean _b) {
+ isLog_=_b;
+ }
private JWindow window_;
public synchronized JWindow getCommentWindow()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|