org.eclipse.xtext.ui.editor.reconciler
Class XtextReconciler.DocumentListener

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.DocumentListener
All Implemented Interfaces:
org.eclipse.jface.text.contentassist.ICompletionListener, org.eclipse.jface.text.IDocumentListener, IXtextDocumentContentObserver
Enclosing class:
XtextReconciler

protected class XtextReconciler.DocumentListener
extends java.lang.Object
implements IXtextDocumentContentObserver, org.eclipse.jface.text.contentassist.ICompletionListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.model.IXtextDocumentContentObserver
IXtextDocumentContentObserver.Processor
 
Constructor Summary
protected XtextReconciler.DocumentListener()
           
 
Method Summary
 void assistSessionEnded(org.eclipse.jface.text.contentassist.ContentAssistEvent event)
          Called when a code assist session ends (for example, the proposal popup is closed).
 void assistSessionStarted(org.eclipse.jface.text.contentassist.ContentAssistEvent event)
          Called when code assist is invoked when there is no current code assist session.
 void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
          The manipulation described by the document event will be performed.
 void documentChanged(org.eclipse.jface.text.DocumentEvent event)
          The manipulation described by the document event has been performed.
 void performNecessaryUpdates(IXtextDocumentContentObserver.Processor processor)
          Called by the document before when any client requests access to an IXtextDocument's state via IReadAccess.readOnly(IUnitOfWork) or IWriteAccess.modify(IUnitOfWork) Implementers get the chance to do any work using the passed IXtextDocumentContentObserver.Processor
 void selectionChanged(org.eclipse.jface.text.contentassist.ICompletionProposal proposal, boolean smartToggle)
          Called when the selection in the proposal popup is changed or if the insert-mode changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextReconciler.DocumentListener

protected XtextReconciler.DocumentListener()
Method Detail

documentAboutToBeChanged

public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
Description copied from interface: org.eclipse.jface.text.IDocumentListener
The manipulation described by the document event will be performed.

Specified by:
documentAboutToBeChanged in interface org.eclipse.jface.text.IDocumentListener
Parameters:
event - the document event describing the document change

documentChanged

public void documentChanged(org.eclipse.jface.text.DocumentEvent event)
Description copied from interface: org.eclipse.jface.text.IDocumentListener
The manipulation described by the document event has been performed.

Specified by:
documentChanged in interface org.eclipse.jface.text.IDocumentListener
Parameters:
event - the document event describing the document change

performNecessaryUpdates

public void performNecessaryUpdates(IXtextDocumentContentObserver.Processor processor)
Description copied from interface: IXtextDocumentContentObserver
Called by the document before when any client requests access to an IXtextDocument's state via IReadAccess.readOnly(IUnitOfWork) or IWriteAccess.modify(IUnitOfWork) Implementers get the chance to do any work using the passed IXtextDocumentContentObserver.Processor

Specified by:
performNecessaryUpdates in interface IXtextDocumentContentObserver

assistSessionStarted

public void assistSessionStarted(org.eclipse.jface.text.contentassist.ContentAssistEvent event)
Description copied from interface: org.eclipse.jface.text.contentassist.ICompletionListener
Called when code assist is invoked when there is no current code assist session.

Specified by:
assistSessionStarted in interface org.eclipse.jface.text.contentassist.ICompletionListener
Parameters:
event - the content assist event

assistSessionEnded

public void assistSessionEnded(org.eclipse.jface.text.contentassist.ContentAssistEvent event)
Description copied from interface: org.eclipse.jface.text.contentassist.ICompletionListener
Called when a code assist session ends (for example, the proposal popup is closed).

Specified by:
assistSessionEnded in interface org.eclipse.jface.text.contentassist.ICompletionListener
Parameters:
event - the content assist event

selectionChanged

public void selectionChanged(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
                             boolean smartToggle)
Description copied from interface: org.eclipse.jface.text.contentassist.ICompletionListener
Called when the selection in the proposal popup is changed or if the insert-mode changed.

Specified by:
selectionChanged in interface org.eclipse.jface.text.contentassist.ICompletionListener
Parameters:
proposal - the newly selected proposal, possibly null
smartToggle - true if the insert-mode toggle is being pressed, false otherwise