changeset 53:28f6c339768e

remove debugging prints
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 17:10:32 +0200
parents 6e885ae0ec04
children a6683645b0d7
files dwtx/jface/viewers/AbstractTreeViewer.d dwtx/jface/viewers/ColumnViewer.d dwtx/jface/viewers/ContentViewer.d dwtx/jface/viewers/LabelProvider.d dwtx/jface/viewers/ViewerColumn.d
diffstat 5 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/jface/viewers/AbstractTreeViewer.d	Fri Apr 11 17:09:49 2008 +0200
+++ b/dwtx/jface/viewers/AbstractTreeViewer.d	Fri Apr 11 17:10:32 2008 +0200
@@ -915,7 +915,7 @@
      *            the element
      */
     protected void doUpdateItem(Item item, Object element) {
-        Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
         if (item.isDisposed()) {
             unmapElement(element, item);
             return;
@@ -931,12 +931,12 @@
 
         // If the control is virtual, we cannot use the cached viewer row object. See bug 188663.
         if (isVirtual) {
-        Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
             viewerRowFromItem = cast(ViewerRow) viewerRowFromItem.clone();
         }
 
         for (int column = 0; column < columnCount; column++) {
-        Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: doUpdateItem", __FILE__, __LINE__ );
             ViewerColumn columnViewer = getViewerColumn(column);
             ViewerCell cellToUpdate = updateCell(viewerRowFromItem, column,
                     element);
@@ -1786,15 +1786,15 @@
 
     /* (non-Javadoc) Method declared on StructuredViewer. */
     protected override void internalRefresh(Object element, bool updateLabels) {
-    Trace.formatln( "{} {}: ", __FILE__, __LINE__ );
-    PrintStackTrace();
+//     Trace.formatln( "{} {}: ", __FILE__, __LINE__ );
+//     PrintStackTrace();
         // If element is null, do a full refresh.
         if (element is null) {
             internalRefresh(getControl(), getRoot(), true, updateLabels);
             return;
         }
         Widget[] items = findItems(element);
-    Trace.formatln( "{} {}: ,items.length={}", __FILE__, __LINE__ ,items.length);
+//     Trace.formatln( "{} {}: ,items.length={}", __FILE__, __LINE__ ,items.length);
         if (items.length !is 0) {
             for (int i = 0; i < items.length; i++) {
                 // pick up structure changes too
@@ -2993,7 +2993,7 @@
      *      java.lang.Object)
      */
     protected override void buildLabel(ViewerLabel updateLabel, Object elementOrPath) {
-    Trace.formatln( "{} {}:", __FILE__, __LINE__ );
+//     Trace.formatln( "{} {}:", __FILE__, __LINE__ );
         Object element;
         if (auto path = cast(TreePath)elementOrPath ) {
             IBaseLabelProvider provider = getLabelProvider();
--- a/dwtx/jface/viewers/ColumnViewer.d	Fri Apr 11 17:09:49 2008 +0200
+++ b/dwtx/jface/viewers/ColumnViewer.d	Fri Apr 11 17:10:32 2008 +0200
@@ -220,7 +220,7 @@
      *         there is none for the given index
      */
     /* package */ViewerColumn getViewerColumn(int columnIndex) {
-        Trace.formatln( "{} {}: getViewerColumn", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: getViewerColumn", __FILE__, __LINE__ );
 
         ViewerColumn viewer;
         Widget columnOwner = getColumnViewerOwner(columnIndex);
@@ -358,7 +358,7 @@
      * @return ViewerCell
      */
     /* package */ViewerCell updateCell(ViewerRow rowItem, int column, Object element) {
-        Trace.formatln( "{} {}: getViewerColumn", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: getViewerColumn", __FILE__, __LINE__ );
         cell.update(rowItem, column, element);
         return cell;
     }
@@ -405,7 +405,7 @@
      *
      */
     public override void setLabelProvider(IBaseLabelProvider labelProvider) {
-        Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
         Assert.isTrue( null !is cast(ITableLabelProvider)labelProvider
                 || null !is cast(ILabelProvider)labelProvider
                 || null !is cast(CellLabelProvider)labelProvider );
@@ -421,9 +421,9 @@
         ViewerColumn column;
         int i = 0;
 
-        Trace.formatln( "{} {}: updateColumnParts", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: updateColumnParts", __FILE__, __LINE__ );
         while ((column = getViewerColumn(i++)) !is null) {
-            Trace.formatln( "{} {}: updateColumnParts loop", __FILE__, __LINE__ );
+//             Trace.formatln( "{} {}: updateColumnParts loop", __FILE__, __LINE__ );
             column.setLabelProvider(CellLabelProvider
                     .createViewerLabelProvider(this, labelProvider), false);
         }
@@ -687,7 +687,7 @@
      * @since 3.3
      */
     public CellLabelProvider getLabelProvider(int columnIndex) {
-        Trace.formatln( "{} {}: getLabelProvider", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: getLabelProvider", __FILE__, __LINE__ );
         ViewerColumn column = getViewerColumn(columnIndex);
         if (column !is null) {
             return column.getLabelProvider();
--- a/dwtx/jface/viewers/ContentViewer.d	Fri Apr 11 17:09:49 2008 +0200
+++ b/dwtx/jface/viewers/ContentViewer.d	Fri Apr 11 17:10:32 2008 +0200
@@ -138,12 +138,12 @@
      * @return a label provider
      */
     public IBaseLabelProvider getLabelProvider() {
-        Trace.formatln( "{} {}:", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}:", __FILE__, __LINE__ );
         if (labelProvider is null) {
-            Trace.formatln( "{} {}:", __FILE__, __LINE__ );
+//             Trace.formatln( "{} {}:", __FILE__, __LINE__ );
             labelProvider = new LabelProvider();
         }
-        PrintStackTrace();
+//         PrintStackTrace();
         return labelProvider;
     }
 
@@ -169,7 +169,7 @@
             labelProvider.removeListener(labelProviderListener);
             labelProvider.dispose();
             labelProvider = null;
-            Trace.formatln( "{} {}: labelProvider = null;", __FILE__, __LINE__ );
+//             Trace.formatln( "{} {}: labelProvider = null;", __FILE__, __LINE__ );
         }
         input = null;
     }
@@ -282,7 +282,7 @@
      * @param labelProvider the label provider, or <code>null</code> if none
      */
     public void setLabelProvider(IBaseLabelProvider labelProvider) {
-    Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
+//     Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
         IBaseLabelProvider oldProvider = this.labelProvider;
         // If it hasn't changed, do nothing.
         // This also ensures that the provider is not disposed
@@ -303,6 +303,6 @@
         if (oldProvider !is null) {
             oldProvider.dispose();
         }
-        Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
+//         Trace.formatln( "{} {}: setLabelProvider", __FILE__, __LINE__ );
     }
 }
--- a/dwtx/jface/viewers/LabelProvider.d	Fri Apr 11 17:09:49 2008 +0200
+++ b/dwtx/jface/viewers/LabelProvider.d	Fri Apr 11 17:10:32 2008 +0200
@@ -59,7 +59,7 @@
      * <code>toString</code> string. Subclasses may override.
      */
     public String getText(Object element) {
-    Trace.formatln( "{} {}: getText", __FILE__, __LINE__ );
+//     Trace.formatln( "{} {}: getText", __FILE__, __LINE__ );
         return element is null ? "" : element.toString();//$NON-NLS-1$
     }
 }
--- a/dwtx/jface/viewers/ViewerColumn.d	Fri Apr 11 17:09:49 2008 +0200
+++ b/dwtx/jface/viewers/ViewerColumn.d	Fri Apr 11 17:10:32 2008 +0200
@@ -61,7 +61,7 @@
      *            this could be the widget itself
      */
     protected this(ColumnViewer viewer, Widget columnOwner) {
-        Trace.formatln( "{} {}: this() columnOwner={:X} this={:X}", __FILE__, __LINE__, cast(uint)cast(void*)columnOwner, cast(uint)cast(void*)this );
+//         Trace.formatln( "{} {}: this() columnOwner={:X} this={:X}", __FILE__, __LINE__, cast(uint)cast(void*)columnOwner, cast(uint)cast(void*)this );
         columnOwner.setData(ViewerColumn.COLUMN_VIEWER_KEY, this);
         this.listener = new class(viewer) ILabelProviderListener {
             ColumnViewer viewer_;