modesteditor.core
Class ModestReconcilingStrategy

java.lang.Object
  extended by modesteditor.core.ModestReconcilingStrategy
All Implemented Interfaces:
org.eclipse.jface.text.reconciler.IReconcilingStrategy

public class ModestReconcilingStrategy
extends java.lang.Object
implements org.eclipse.jface.text.reconciler.IReconcilingStrategy

Updates the ModestSimulation representing a document open in the workspace, whenever the document is changed.


Constructor Summary
ModestReconcilingStrategy(ModestEditor editor)
          Creates a reconciling strategy to update the given editor's model when the document changes.
 
Method Summary
 void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion, org.eclipse.jface.text.IRegion subRegion)
           
 void reconcile(org.eclipse.jface.text.IRegion partition)
           
 void setDocument(org.eclipse.jface.text.IDocument document)
          Tells this reconciling strategy on which document it will work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModestReconcilingStrategy

public ModestReconcilingStrategy(ModestEditor editor)
Creates a reconciling strategy to update the given editor's model when the document changes. It should only be used with this editor.

Method Detail

reconcile

public void reconcile(org.eclipse.jface.text.IRegion partition)
Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy

reconcile

public void reconcile(org.eclipse.jface.text.reconciler.DirtyRegion dirtyRegion,
                      org.eclipse.jface.text.IRegion subRegion)
Specified by:
reconcile in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy

setDocument

public void setDocument(org.eclipse.jface.text.IDocument document)
Tells this reconciling strategy on which document it will work. However, since the containing editor has already been given in the constructor, this method doesn't do anything.

Specified by:
setDocument in interface org.eclipse.jface.text.reconciler.IReconcilingStrategy