org.eclipse.xtext.purexbase.ui.autoedit
Class ReplAutoEdit

java.lang.Object
  extended by org.eclipse.xtext.purexbase.ui.autoedit.ReplAutoEdit
All Implemented Interfaces:
org.eclipse.jface.text.IAutoEditStrategy

public class ReplAutoEdit
extends java.lang.Object
implements org.eclipse.jface.text.IAutoEditStrategy


Constructor Summary
ReplAutoEdit()
           
 
Method Summary
protected  java.lang.String computeResultText(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command, XtextResource resource)
           
 void customizeDocumentCommand(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.DocumentCommand command)
          Allows the strategy to manipulate the document command.
protected  XbaseInterpreter getConfiguredInterpreter(XtextResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplAutoEdit

public ReplAutoEdit()
Method Detail

customizeDocumentCommand

public void customizeDocumentCommand(org.eclipse.jface.text.IDocument document,
                                     org.eclipse.jface.text.DocumentCommand command)
Description copied from interface: org.eclipse.jface.text.IAutoEditStrategy
Allows the strategy to manipulate the document command.

Specified by:
customizeDocumentCommand in interface org.eclipse.jface.text.IAutoEditStrategy
Parameters:
document - the document that will be changed
command - the document command describing the change

computeResultText

protected java.lang.String computeResultText(org.eclipse.jface.text.IDocument document,
                                             org.eclipse.jface.text.DocumentCommand command,
                                             XtextResource resource)
                                      throws org.eclipse.jface.text.BadLocationException
Throws:
org.eclipse.jface.text.BadLocationException

getConfiguredInterpreter

protected XbaseInterpreter getConfiguredInterpreter(XtextResource resource)