com.cmpware.ide.views
Class DisassembleContent

java.lang.Object
  extended by com.cmpware.ide.views.DisassembleContent
All Implemented Interfaces:
org.eclipse.swt.custom.StyledTextContent

public class DisassembleContent
extends java.lang.Object
implements org.eclipse.swt.custom.StyledTextContent

This describes the content implementation for the Disassembly Viewer. This replaces the older DasmView class.

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

Author:
SAG

Field Summary
static int charsPerLine
          Number of characters per padded disassemble line (includes newline)
static java.lang.String copyright
          Copyright string
static java.lang.String spaces80
          A string containing 80 spaces (used for padding)
 
Constructor Summary
DisassembleContent()
           
 
Method Summary
 void addTextChangeListener(org.eclipse.swt.custom.TextChangeListener listener)
           
 int getCharCount()
           
 java.lang.String getLine(int lineIndex)
           
 int getLineAtOffset(int offset)
           
 int getLineCount()
           
 java.lang.String getLineDelimiter()
           
 int getOffsetAtLine(int lineIndex)
           
 java.lang.String getTextRange(int start, int length)
           
 void removeTextChangeListener(org.eclipse.swt.custom.TextChangeListener listener)
           
 void replaceTextRange(int start, int replaceLength, java.lang.String text)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

charsPerLine

public static final int charsPerLine
Number of characters per padded disassemble line (includes newline)

See Also:
Constant Field Values

spaces80

public static final java.lang.String spaces80
A string containing 80 spaces (used for padding)

See Also:
Constant Field Values
Constructor Detail

DisassembleContent

public DisassembleContent()
Method Detail

addTextChangeListener

public void addTextChangeListener(org.eclipse.swt.custom.TextChangeListener listener)
Specified by:
addTextChangeListener in interface org.eclipse.swt.custom.StyledTextContent

getCharCount

public int getCharCount()
Specified by:
getCharCount in interface org.eclipse.swt.custom.StyledTextContent

getLine

public java.lang.String getLine(int lineIndex)
Specified by:
getLine in interface org.eclipse.swt.custom.StyledTextContent

getLineAtOffset

public int getLineAtOffset(int offset)
Specified by:
getLineAtOffset in interface org.eclipse.swt.custom.StyledTextContent

getLineCount

public int getLineCount()
Specified by:
getLineCount in interface org.eclipse.swt.custom.StyledTextContent

getLineDelimiter

public java.lang.String getLineDelimiter()
Specified by:
getLineDelimiter in interface org.eclipse.swt.custom.StyledTextContent

getOffsetAtLine

public int getOffsetAtLine(int lineIndex)
Specified by:
getOffsetAtLine in interface org.eclipse.swt.custom.StyledTextContent

getTextRange

public java.lang.String getTextRange(int start,
                                     int length)
Specified by:
getTextRange in interface org.eclipse.swt.custom.StyledTextContent

removeTextChangeListener

public void removeTextChangeListener(org.eclipse.swt.custom.TextChangeListener listener)
Specified by:
removeTextChangeListener in interface org.eclipse.swt.custom.StyledTextContent

replaceTextRange

public void replaceTextRange(int start,
                             int replaceLength,
                             java.lang.String text)
Specified by:
replaceTextRange in interface org.eclipse.swt.custom.StyledTextContent

setText

public void setText(java.lang.String text)
Specified by:
setText in interface org.eclipse.swt.custom.StyledTextContent