jDoc, tests, Server fixes
[nikiroo-utils.git] / src / be / nikiroo / utils / TraceHandler.java
index d7f604667f8976c8afe595a81620b5665d4981aa..309e8af6d393f31823a4200e719ec051e1570ad3 100644 (file)
@@ -67,7 +67,7 @@ public class TraceHandler {
        /**
         * A trace happened, show it.
         * <p>
-        * Will only be effective if {@link TraceHandler#isShowTraces()} is true.
+        * Will only be effective if {@link TraceHandler#showTraces} is true.
         * 
         * @param message
         *            the trace message
@@ -77,4 +77,28 @@ public class TraceHandler {
                        System.out.println(message);
                }
        }
+
+       // old stuff:
+
+       /**
+        * Use the parameters in the constructor instead.
+        * 
+        * @param showTraces
+        *            show the traces
+        */
+       @Deprecated
+       public void setShowTraces(boolean showTraces) {
+               this.showTraces = showTraces;
+       }
+
+       /**
+        * Use the parameters in the constructor instead.
+        * 
+        * @param showErrorDetails
+        *            show the details on errors
+        */
+       @Deprecated
+       public void setShowErrorDetails(boolean showErrorDetails) {
+               this.showErrorDetails = showErrorDetails;
+       }
 }