com.aptana.ide.editor.js.runtime
Class SourceEdit

java.lang.Object
  extended by com.aptana.ide.editor.js.runtime.SourceEdit

public class SourceEdit
extends java.lang.Object

Author:
Kevin Lindsey

Field Summary
 java.lang.String insertText
          The text to insert at the given offset
 int offset
          The offset within the source file where this edit is taking place
 int removeLength
          The amount of text to remove at the offset before inserting the new text
 
Constructor Summary
SourceEdit(int offset, java.lang.String insertText, int removeLength)
          Create a new instance of SourceEdit
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

public int offset
The offset within the source file where this edit is taking place


insertText

public java.lang.String insertText
The text to insert at the given offset


removeLength

public int removeLength
The amount of text to remove at the offset before inserting the new text

Constructor Detail

SourceEdit

public SourceEdit(int offset,
                  java.lang.String insertText,
                  int removeLength)
Create a new instance of SourceEdit

Parameters:
offset - The offset with in the source where the edit is taking effect
insertText - The text to insert at the specified offset
removeLength - The number of character to delete at the specified offset before inserting the new text