Mercurial > projects > dwt2
diff org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.d @ 18:735224fcc45f
redirected all printings to DwtLogger
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 09:57:53 +0100 |
parents | 6f068362a363 |
children | 52184e4b815c |
line wrap: on
line diff
--- a/org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.d Wed Mar 18 09:09:23 2009 +0100 +++ b/org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.d Wed Mar 18 09:57:53 2009 +0100 @@ -28,7 +28,6 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.Set; -import tango.io.Stdout; import tango.core.Exception; /** @@ -188,16 +187,16 @@ size = contributions.size(); } - Stdout.formatln(this.toString()); - Stdout.formatln(" Number of elements: {}", size);//$NON-NLS-1$ + getDwtLogger().info( __FILE__, __LINE__, "{}", this.toString()); + getDwtLogger().info( __FILE__, __LINE__, " Number of elements: {}", size);//$NON-NLS-1$ int sum = 0; for (int i = 0; i < size; i++) { if ((cast(IContributionItem) contributions.get(i)).isVisible()) { sum++; } } - Stdout.formatln(" Number of visible elements: {}", sum);//$NON-NLS-1$ - Stdout.formatln(" Is dirty: {}", isDirty()); //$NON-NLS-1$ + getDwtLogger().info( __FILE__, __LINE__, " Number of visible elements: {}", sum);//$NON-NLS-1$ + getDwtLogger().info( __FILE__, __LINE__, " Is dirty: {}", isDirty()); //$NON-NLS-1$ } /* @@ -535,7 +534,7 @@ IContributionItem item = cast(IContributionItem) contributions.get(i); if ((item !is null) && (identifier.equals(item.getId()))) { if (Policy.TRACE_TOOLBAR) { - Stdout.formatln("Removing duplicate on replace: {}", identifier); //$NON-NLS-1$ + getDwtLogger().info( __FILE__, __LINE__, "Removing duplicate on replace: {}", identifier); //$NON-NLS-1$ } contributions.remove(i); itemRemoved(item);