com.cmpware.ide.views
Class MemoryView

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 com.cmpware.ide.views.MemoryView
All Implemented Interfaces:
IListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class MemoryView
extends org.eclipse.ui.part.ViewPart
implements IListener

This describes the Memory Code Viewer.

Copyright (c) 2007 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Nested Class Summary
protected  class MemoryView.MemoryLineStyleListener
          This class defines the line style for the memory display.
 
Field Summary
static java.lang.String copyright
          Copyright string
protected static org.eclipse.swt.graphics.Color darkBlue
          The color dark blue
protected static org.eclipse.swt.graphics.Color darkGray
          The color dark grey
protected static org.eclipse.swt.graphics.Color darkGreen
          The color dark green
protected  org.eclipse.swt.graphics.Font font
          The font
protected  java.lang.String fontName
          The font name
protected  int fontPoints
          The font size (in points)
protected  int fontType
          The font type (SWT.NORMAL, SWT.BOLD, SWT.ITALIC)
protected  org.eclipse.swt.custom.StyledTextContent memoryContent
          The styled text content for the memory display
protected  MemoryView.MemoryLineStyleListener memoryLineStyleListener
          This is the memory line style listener
protected  Processor p
          The current processor
protected  org.eclipse.swt.widgets.Composite parent
          The parent widget
protected  org.eclipse.swt.custom.StyledText styledText
          The Styled Text Widget
protected  org.eclipse.swt.graphics.Color textColor
          The text color
protected static org.eclipse.swt.graphics.Color white
          The color white
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
MemoryView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void handleEvent(int eventType)
          This method is called upon receipt of an event.
 void setFocus()
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
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.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

p

protected Processor p
The current processor


parent

protected org.eclipse.swt.widgets.Composite parent
The parent widget


styledText

protected org.eclipse.swt.custom.StyledText styledText
The Styled Text Widget


memoryContent

protected org.eclipse.swt.custom.StyledTextContent memoryContent
The styled text content for the memory display


memoryLineStyleListener

protected MemoryView.MemoryLineStyleListener memoryLineStyleListener
This is the memory line style listener


white

protected static org.eclipse.swt.graphics.Color white
The color white


darkGray

protected static org.eclipse.swt.graphics.Color darkGray
The color dark grey


darkGreen

protected static org.eclipse.swt.graphics.Color darkGreen
The color dark green


darkBlue

protected static org.eclipse.swt.graphics.Color darkBlue
The color dark blue


textColor

protected org.eclipse.swt.graphics.Color textColor
The text color


font

protected org.eclipse.swt.graphics.Font font
The font


fontName

protected java.lang.String fontName
The font name


fontPoints

protected int fontPoints
The font size (in points)


fontType

protected int fontType
The font type (SWT.NORMAL, SWT.BOLD, SWT.ITALIC)

Constructor Detail

MemoryView

public MemoryView()
Method Detail

createPartControl

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

dispose

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

handleEvent

public void handleEvent(int eventType)
Description copied from interface: IListener
This method is called upon receipt of an event.

Specified by:
handleEvent in interface IListener
Parameters:
eventType - a code giving the event type.

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart