org.eclipse.m2m.atl.adt.debug.ui
Class AtlDebugModelPresentation

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.BaseLabelProvider
          extended by org.eclipse.jface.viewers.LabelProvider
              extended by org.eclipse.m2m.atl.adt.debug.ui.AtlDebugModelPresentation
All Implemented Interfaces:
org.eclipse.debug.ui.IDebugModelPresentation, org.eclipse.debug.ui.ISourcePresentation, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider

public class AtlDebugModelPresentation
extends org.eclipse.jface.viewers.LabelProvider
implements org.eclipse.debug.ui.IDebugModelPresentation


Field Summary
static int BREAKPOINT
           
protected static java.util.logging.Logger logger
           
 
Fields inherited from interface org.eclipse.debug.ui.IDebugModelPresentation
DISPLAY_VARIABLE_TYPE_NAMES
 
Constructor Summary
AtlDebugModelPresentation()
           
 
Method Summary
 void computeDetail(org.eclipse.debug.core.model.IValue value, org.eclipse.debug.ui.IValueDetailListener listener)
           
 org.eclipse.ui.IEditorInput getDisassemblyEditorInput(AtlStackFrame frame)
           
 java.lang.String getEditorId(org.eclipse.ui.IEditorInput input, java.lang.Object element)
           
 org.eclipse.ui.IEditorInput getEditorInput(java.lang.Object element)
           
 org.eclipse.swt.graphics.Image getImage(java.lang.Object item)
          This method returns the image associate to the type of the parameter
 java.lang.String getText(java.lang.Object item)
          This method returns the text associate to the parameter
 void setAttribute(java.lang.String attribute, java.lang.Object value)
          Clients may define new presentation attributes.
 
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, dispose, isLabelProperty, removeListener
 

Field Detail

logger

protected static java.util.logging.Logger logger

BREAKPOINT

public static final int BREAKPOINT
See Also:
Constant Field Values
Constructor Detail

AtlDebugModelPresentation

public AtlDebugModelPresentation()
Method Detail

setAttribute

public void setAttribute(java.lang.String attribute,
                         java.lang.Object value)
Clients may define new presentation attributes. For example, a client may wish to define a "hexadecimal" property to display numeric values in hexadecimal. Implementations should honor the presentation attributes defined by this interface where possible, but do not need to honor presentation attributes defined by other clients. To access the debug model presentation for a debug view, clients should use DebugView#getPresentation(String).

Specified by:
setAttribute in interface org.eclipse.debug.ui.IDebugModelPresentation
See Also:
IDebugModelPresentation.setAttribute(java.lang.String, java.lang.Object)

getImage

public org.eclipse.swt.graphics.Image getImage(java.lang.Object item)
This method returns the image associate to the type of the parameter

Specified by:
getImage in interface org.eclipse.debug.ui.IDebugModelPresentation
Specified by:
getImage in interface org.eclipse.jface.viewers.ILabelProvider
Overrides:
getImage in class org.eclipse.jface.viewers.LabelProvider
See Also:
ILabelProvider.getImage(java.lang.Object)

getText

public java.lang.String getText(java.lang.Object item)
This method returns the text associate to the parameter

Specified by:
getText in interface org.eclipse.debug.ui.IDebugModelPresentation
Specified by:
getText in interface org.eclipse.jface.viewers.ILabelProvider
Overrides:
getText in class org.eclipse.jface.viewers.LabelProvider
See Also:
ILabelProvider.getText(java.lang.Object)

computeDetail

public void computeDetail(org.eclipse.debug.core.model.IValue value,
                          org.eclipse.debug.ui.IValueDetailListener listener)
Specified by:
computeDetail in interface org.eclipse.debug.ui.IDebugModelPresentation
See Also:
IDebugModelPresentation.computeDetail(org.eclipse.debug.core.model.IValue, org.eclipse.debug.ui.IValueDetailListener)

getDisassemblyEditorInput

public org.eclipse.ui.IEditorInput getDisassemblyEditorInput(AtlStackFrame frame)

getEditorInput

public org.eclipse.ui.IEditorInput getEditorInput(java.lang.Object element)
Specified by:
getEditorInput in interface org.eclipse.debug.ui.ISourcePresentation
See Also:
ISourcePresentation.getEditorInput(java.lang.Object)

getEditorId

public java.lang.String getEditorId(org.eclipse.ui.IEditorInput input,
                                    java.lang.Object element)
Specified by:
getEditorId in interface org.eclipse.debug.ui.ISourcePresentation
See Also:
ISourcePresentation.getEditorId(org.eclipse.ui.IEditorInput, java.lang.Object)

Copyright 2007 IBM Corporation and others.
All Rights Reserved.