org.eclipse.cdt.debug.internal.ui.views.disassembly
Class DisassemblyView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.ui.part.PageBookView
                  extended by org.eclipse.debug.ui.AbstractDebugView
                      extended by org.eclipse.cdt.debug.internal.ui.views.AbstractDebugEventHandlerView
                          extended by org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyView
All Implemented Interfaces:
java.util.EventListener, IDisassemblyListener, IDebugExceptionHandler, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.debug.ui.IDebugView, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.jface.viewers.IDoubleClickListener, org.eclipse.ui.INullSelectionListener, org.eclipse.ui.IPartListener, org.eclipse.ui.IPersistable, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class DisassemblyView
extends AbstractDebugEventHandlerView
implements org.eclipse.ui.ISelectionListener, org.eclipse.ui.INullSelectionListener, org.eclipse.jface.util.IPropertyChangeListener, IDebugExceptionHandler, IDisassemblyListener

This view shows disassembly for a particular stack frame.


Field Summary
 
Fields inherited from interface org.eclipse.debug.ui.IDebugView
COPY_ACTION, CUT_ACTION, DOUBLE_CLICK_ACTION, FIND_ACTION, PASTE_ACTION, REMOVE_ACTION, SELECT_ALL_ACTION
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
DisassemblyView()
          Constructor for DisassemblyView.
 
Method Summary
 void computeInput(java.lang.Object current, ICStackFrame frame, IDisassemblyListener listener)
          Asynchronousy computes the editor input for the given stack frame.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 org.eclipse.jface.action.IAction getAction(java.lang.String actionID)
           
 DisassemblyDocumentProvider getDocumentProvider()
           
 org.eclipse.ui.IEditorInput getInput()
           
 void handleException(org.eclipse.debug.core.DebugException e)
          Handles the given debug exception.
 void inputComputed(ICStackFrame frame, org.eclipse.core.runtime.IStatus status, org.eclipse.ui.IEditorInput input)
          Notifies this listener that the input is computed.
 void partActivated(org.eclipse.ui.IWorkbenchPart part)
           
 void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
           
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
 void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 void setAction(java.lang.String actionID, org.eclipse.jface.action.IAction action)
           
 
Methods inherited from class org.eclipse.debug.ui.AbstractDebugView
add, addContextMenuManager, asyncExec, doubleClick, getAdapter, getContextMenuManager, getContextMenuManagers, getPresentation, getPresentationAttributes, getViewer, init, isAvailable, isVisible, remove, showMessage, showViewer, syncExec, updateObjects
 
Methods inherited from class org.eclipse.ui.part.PageBookView
getCurrentPage, getDefaultPage, init, partBroughtToTop, partClosed, partOpened, setFocus
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IViewPart
getViewSite, init, saveState
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
 

Constructor Detail

DisassemblyView

public DisassemblyView()
Constructor for DisassemblyView.

Method Detail

selectionChanged

public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.ISelectionListener

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener

handleException

public void handleException(org.eclipse.debug.core.DebugException e)
Description copied from interface: IDebugExceptionHandler
Handles the given debug exception.

Specified by:
handleException in interface IDebugExceptionHandler
Parameters:
e - debug exception

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class AbstractDebugEventHandlerView
See Also:
IWorkbenchPart#dispose()

inputComputed

public void inputComputed(ICStackFrame frame,
                          org.eclipse.core.runtime.IStatus status,
                          org.eclipse.ui.IEditorInput input)
Description copied from interface: IDisassemblyListener
Notifies this listener that the input is computed.

Specified by:
inputComputed in interface IDisassemblyListener
Parameters:
frame - the stack frame.
status - the result status.
input - the resulting editor input. null if status is not OK.

computeInput

public void computeInput(java.lang.Object current,
                         ICStackFrame frame,
                         IDisassemblyListener listener)
Asynchronousy computes the editor input for the given stack frame.

Parameters:
current - the current editor input
frame - the stack frame for which the input is required
listener - the listener to be notified when the computation is completed

getInput

public org.eclipse.ui.IEditorInput getInput()

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Overrides:
createPartControl in class org.eclipse.debug.ui.AbstractDebugView

getDocumentProvider

public DisassemblyDocumentProvider getDocumentProvider()

setAction

public void setAction(java.lang.String actionID,
                      org.eclipse.jface.action.IAction action)
Specified by:
setAction in interface org.eclipse.debug.ui.IDebugView
Overrides:
setAction in class org.eclipse.debug.ui.AbstractDebugView

getAction

public org.eclipse.jface.action.IAction getAction(java.lang.String actionID)
Specified by:
getAction in interface org.eclipse.debug.ui.IDebugView
Overrides:
getAction in class org.eclipse.debug.ui.AbstractDebugView

partActivated

public void partActivated(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partActivated in interface org.eclipse.ui.IPartListener
Overrides:
partActivated in class org.eclipse.ui.part.PageBookView

partDeactivated

public void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partDeactivated in interface org.eclipse.ui.IPartListener
Overrides:
partDeactivated in class org.eclipse.ui.part.PageBookView