org.eclipse.cdt.debug.internal.ui
Class CDebugUIUtils

java.lang.Object
  extended by org.eclipse.cdt.debug.internal.ui.CDebugUIUtils

public class CDebugUIUtils
extends java.lang.Object

Utility methods for C/C++ Debug UI.


Constructor Summary
CDebugUIUtils()
           
 
Method Summary
static java.lang.String decorateText(java.lang.Object element, java.lang.String text)
           
static org.eclipse.jface.text.IRegion findWord(org.eclipse.jface.text.IDocument document, int offset)
           
static ICStackFrame getCurrentStackFrame()
          Returns the currently selected stack frame or the topmost frame in the currently selected thread in the Debug view of the current workbench page.
static java.lang.String getValueText(org.eclipse.debug.core.model.IValue value)
          Moved from CDebugModelPresentation because it is also used by CVariableLabelProvider.
static java.lang.String getVariableName(org.eclipse.debug.core.model.IVariable variable)
           
static java.lang.String getVariableTypeName(ICType type)
          Moved from CDebugModelPresentation because it is also used by CVariableLabelProvider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDebugUIUtils

public CDebugUIUtils()
Method Detail

findWord

public static org.eclipse.jface.text.IRegion findWord(org.eclipse.jface.text.IDocument document,
                                                      int offset)

getCurrentStackFrame

public static ICStackFrame getCurrentStackFrame()
Returns the currently selected stack frame or the topmost frame in the currently selected thread in the Debug view of the current workbench page. Returns null if no stack frame or thread is selected, or if not called from the UI thread.

Returns:
the currently selected stack frame or the topmost frame in the currently selected thread

getValueText

public static java.lang.String getValueText(org.eclipse.debug.core.model.IValue value)
Moved from CDebugModelPresentation because it is also used by CVariableLabelProvider.


getVariableTypeName

public static java.lang.String getVariableTypeName(ICType type)
Moved from CDebugModelPresentation because it is also used by CVariableLabelProvider.


getVariableName

public static java.lang.String getVariableName(org.eclipse.debug.core.model.IVariable variable)
                                        throws org.eclipse.debug.core.DebugException
Throws:
org.eclipse.debug.core.DebugException

decorateText

public static java.lang.String decorateText(java.lang.Object element,
                                            java.lang.String text)