com.cmpware.ide.views
Class SourceCodeView

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.SourceCodeView
All Implemented Interfaces:
IListener, java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.swt.events.MouseListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class SourceCodeView
extends org.eclipse.ui.part.ViewPart
implements IListener, org.eclipse.swt.events.MouseListener

This describes the Source Code Viewer.

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

Author:
SAG

Nested Class Summary
protected  class SourceCodeView.noBg
          This class defines no line background style for the disassebmler display.
protected  class SourceCodeView.SourceCodeLineBackgroundListener
          This class defines the line background style for the source code display.
 
Field Summary
static java.lang.String copyright
          Copyright string
protected  org.eclipse.swt.graphics.Font font
          The font
protected static org.eclipse.swt.graphics.Color lightGreen
          The color light green
static org.eclipse.swt.graphics.RGB lightGreenRGB
          The color light green
protected static org.eclipse.swt.graphics.Color lightOrange
          The color light orange
static org.eclipse.swt.graphics.RGB lightOrangeRGB
          The color light orange
protected static org.eclipse.swt.graphics.Color lightRed
          The color light red
static org.eclipse.swt.graphics.RGB lightRedRGB
          The color light red RGB data
protected static org.eclipse.swt.graphics.Color lightYellow
          The color light yellow
static org.eclipse.swt.graphics.RGB lightYellowRGB
          The color light yellow
protected  org.eclipse.swt.widgets.Composite parent
          The parent widget
protected  org.eclipse.jface.text.source.SourceViewer sourceViewer
          The Source Viewer
protected  org.eclipse.swt.custom.StyledText styledText
          The styled text widget
protected  org.eclipse.jface.text.source.VerticalRuler verticalRuler
          The Vertical Ruler
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
SourceCodeView()
           
 
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 mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
           
 void mouseDown(org.eclipse.swt.events.MouseEvent e)
           
 void mouseUp(org.eclipse.swt.events.MouseEvent e)
           
 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

parent

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


sourceViewer

protected org.eclipse.jface.text.source.SourceViewer sourceViewer
The Source Viewer


styledText

protected org.eclipse.swt.custom.StyledText styledText
The styled text widget


verticalRuler

protected org.eclipse.jface.text.source.VerticalRuler verticalRuler
The Vertical Ruler


font

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


lightRed

protected static org.eclipse.swt.graphics.Color lightRed
The color light red


lightOrange

protected static org.eclipse.swt.graphics.Color lightOrange
The color light orange


lightYellow

protected static org.eclipse.swt.graphics.Color lightYellow
The color light yellow


lightGreen

protected static org.eclipse.swt.graphics.Color lightGreen
The color light green


lightRedRGB

public static org.eclipse.swt.graphics.RGB lightRedRGB
The color light red RGB data


lightOrangeRGB

public static org.eclipse.swt.graphics.RGB lightOrangeRGB
The color light orange


lightYellowRGB

public static org.eclipse.swt.graphics.RGB lightYellowRGB
The color light yellow


lightGreenRGB

public static org.eclipse.swt.graphics.RGB lightGreenRGB
The color light green

Constructor Detail

SourceCodeView

public SourceCodeView()
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.

mouseDoubleClick

public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
Specified by:
mouseDoubleClick in interface org.eclipse.swt.events.MouseListener

mouseDown

public void mouseDown(org.eclipse.swt.events.MouseEvent e)
Specified by:
mouseDown in interface org.eclipse.swt.events.MouseListener

mouseUp

public void mouseUp(org.eclipse.swt.events.MouseEvent e)
Specified by:
mouseUp in interface org.eclipse.swt.events.MouseListener

setFocus

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