org.eclipse.cdt.debug.internal.ui.views.modules
Class ModulesView

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.modules.ModulesView
All Implemented Interfaces:
java.util.EventListener, 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.IPartListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IPerspectiveListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class ModulesView
extends org.eclipse.debug.ui.AbstractDebugView
implements IDebugExceptionHandler, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IPerspectiveListener

Displays the modules currently loaded by the process being debugged.


Nested Class Summary
 class ModulesView.ModulesViewPresentationContext
           
 
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
ModulesView()
           
 
Method Summary
 void contextActivated(org.eclipse.jface.viewers.ISelection selection)
           
 void debugContextChanged(DebugContextEvent event)
           
 void dispose()
           
 void handleException(org.eclipse.debug.core.DebugException e)
          Handles the given debug exception.
 void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento)
           
 void modelChanged(IModelDelta delta, IModelProxy proxy)
           
 void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
           
 void perspectiveActivated(org.eclipse.ui.IWorkbenchPage page, org.eclipse.ui.IPerspectiveDescriptor perspective)
           
 void perspectiveChanged(org.eclipse.ui.IWorkbenchPage page, org.eclipse.ui.IPerspectiveDescriptor perspective, java.lang.String changeId)
           
 void populateDetailPane()
          Ask the modules tree for its current selection, and use this to populate the detail pane.
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
 void saveViewerState(org.eclipse.ui.IMemento memento)
          Saves the current state of the viewer
 void setDetailPaneOrientation(java.lang.String orientation)
           
 void toggleDetailPaneWordWrap(boolean on)
          Set on or off the word wrap flag for the detail pane.
 void updateComplete(IViewerUpdate update)
           
 void updateStarted(IViewerUpdate update)
           
 void viewerUpdatesBegin()
           
 void viewerUpdatesComplete()
           
 
Methods inherited from class org.eclipse.debug.ui.AbstractDebugView
add, addContextMenuManager, asyncExec, createPartControl, doubleClick, getAction, getAdapter, getContextMenuManager, getContextMenuManagers, getPresentation, getPresentationAttributes, getViewer, isAvailable, isVisible, remove, setAction, showMessage, showViewer, syncExec, updateObjects
 
Methods inherited from class org.eclipse.ui.part.PageBookView
getCurrentPage, getDefaultPage, init, partActivated, 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

ModulesView

public ModulesView()
Method Detail

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

propertyChange

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

populateDetailPane

public void populateDetailPane()
Ask the modules tree for its current selection, and use this to populate the detail pane.


setDetailPaneOrientation

public void setDetailPaneOrientation(java.lang.String orientation)

toggleDetailPaneWordWrap

public void toggleDetailPaneWordWrap(boolean on)
Set on or off the word wrap flag for the detail pane.


saveViewerState

public void saveViewerState(org.eclipse.ui.IMemento memento)
Saves the current state of the viewer

Parameters:
memento - the memento to write the viewer state into

init

public void init(org.eclipse.ui.IViewSite site,
                 org.eclipse.ui.IMemento memento)
          throws org.eclipse.ui.PartInitException
Specified by:
init in interface org.eclipse.ui.IViewPart
Overrides:
init in class org.eclipse.debug.ui.AbstractDebugView
Throws:
org.eclipse.ui.PartInitException

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.debug.ui.AbstractDebugView

contextActivated

public void contextActivated(org.eclipse.jface.viewers.ISelection selection)

debugContextChanged

public void debugContextChanged(DebugContextEvent event)

perspectiveActivated

public void perspectiveActivated(org.eclipse.ui.IWorkbenchPage page,
                                 org.eclipse.ui.IPerspectiveDescriptor perspective)
Specified by:
perspectiveActivated in interface org.eclipse.ui.IPerspectiveListener

perspectiveChanged

public void perspectiveChanged(org.eclipse.ui.IWorkbenchPage page,
                               org.eclipse.ui.IPerspectiveDescriptor perspective,
                               java.lang.String changeId)
Specified by:
perspectiveChanged in interface org.eclipse.ui.IPerspectiveListener

modelChanged

public void modelChanged(IModelDelta delta,
                         IModelProxy proxy)

updateComplete

public void updateComplete(IViewerUpdate update)

updateStarted

public void updateStarted(IViewerUpdate update)

viewerUpdatesBegin

public void viewerUpdatesBegin()

viewerUpdatesComplete

public void viewerUpdatesComplete()

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