diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/win32/OS.d @ 18:735224fcc45f

redirected all printings to DwtLogger
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Mar 2009 09:57:53 +0100
parents 950d84783eac
children 4642ab680468
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/win32/OS.d	Wed Mar 18 09:09:23 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/win32/OS.d	Wed Mar 18 09:57:53 2009 +0100
@@ -30,7 +30,7 @@
 alias org.eclipse.swt.internal.win32.WINAPI DWTWINAPI;
 
 void trace(int line ){
-    getDwtLogger.trace( "OS {}", line );
+    getDwtLogger.trace(  __FILE__, __LINE__, "OS {}", line );
 }
 
 // declare of Callback functions
@@ -89,12 +89,12 @@
                 if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){
                     *s.symbol = lib.getSymbol( s.name.ptr );
                     if( s.symbol is null ){
-                        getDwtLogger.error( "{}: Symbol '{}' not found", libname, s.name );
+                        getDwtLogger.error(  __FILE__, __LINE__, "{}: Symbol '{}' not found", libname, s.name );
                     }
                 }
             }
         } else {
-            getDwtLogger.error( "Could not load the library {}", libname );
+            getDwtLogger.error(  __FILE__, __LINE__, "Could not load the library {}", libname );
         }
     }
 
@@ -402,7 +402,7 @@
         void printError( char[] msg ){
             char[] winMsg = tango.sys.Common.SysError.lastMsg();
             char[2000] buf;
-            getDwtLogger.error("{}: {}", msg, CodePage.from( winMsg, buf ) );
+            getDwtLogger.error( __FILE__, __LINE__, "{}: {}", msg, CodePage.from( winMsg, buf ) );
         }
         TCHAR[] buffer = new TCHAR[ MAX_PATH ];
         buffer[] = 0;
@@ -2710,12 +2710,12 @@
             if( OS.WIN32_VERSION >= OS.VERSION( s.major, s.minor )){
                 *s.symbol = lib.getSymbol( s.name.ptr );
                 if( *s.symbol is null ){
-                    getDwtLogger.error("UxTheme.dll: Symbol '{}' not found", s.name );
+                    getDwtLogger.error( __FILE__, __LINE__, "UxTheme.dll: Symbol '{}' not found", s.name );
                 }
             }
         }
     } else {
-        getDwtLogger.error("Could not load the library UxTheme.dll");
+        getDwtLogger.error( __FILE__, __LINE__, "Could not load the library UxTheme.dll");
     }
 }
 //----------------------------------------------------------------------