base/common/src/main/com/thesett/common/util/TraceIndenter.java
public String generateTraceIndent(int delta)
    {
        if (!useIndent)
        {
            return "";
        }
        else
        {
            if (delta >= 1)
            {
                indentStack.push(delta);
            }
            else if (delta < 0)
            {
                indentStack.pop();
            }

            StringBuffer result = new StringBuffer();

            traceIndent += (delta < 0) ? delta : 0;

            for (int i = 0; i < traceIndent; i++)
            {
                result.append(" ");
            }

            traceIndent += (delta > 0) ? delta : 0;

            return result.toString();
        }
    }
public String generateTraceIndent(int delta)
    {
        if (!useIndent)
        {
            return "";
        }
        else
        {
            if (delta >= 1)
            {
                indentStack.push(delta);
            }
            else if (delta < 0)
            {
                indentStack.pop();
            }

            StringBuffer result = new StringBuffer();

            traceIndent += (delta < 0) ? delta : 0;

            for (int i = 0; i < traceIndent; i++)
            {
                result.append(" ");
            }

            traceIndent += (delta > 0) ? delta : 0;

            return result.toString();
        }
    }
public String generateTraceIndent ( int delta ) { if ( ! useIndent ) { return "" ; } else { if ( delta >= 1 ) { indentStack . push ( delta ) ; } else if ( delta < 0 ) { indentStack . pop ( ) ; } StringBuffer result = new StringBuffer ( ) ; traceIndent += ( delta < 0 ) ? delta : 0 ; for ( int i = 0 ; i < traceIndent ; i ++ ) { result . append ( " " ) ; } traceIndent += ( delta > 0 ) ? delta : 0 ; return result . toString ( ) ; } }
Generates a sequence of spaces to indent debugging output with.

@param  delta The amount to change the current trace indent by. If this is negative it is subtracted before the
sequence of spaces is generated, if it is positive it is added after.

@return A sequence of spaces to use for nesting call traces in debug output with.
Generates a sequence of spaces to indent debugging output with .