org.eclipse.xtext.ui.editor.validation
Class ValidatingEditorCallback

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCallback
      extended by org.eclipse.xtext.ui.editor.validation.ValidatingEditorCallback
All Implemented Interfaces:
DirtyStateEditorSupport.IDirtyStateEditorSupportClient, IXtextEditorCallback

public class ValidatingEditorCallback
extends AbstractDirtyStateAwareEditorCallback

Author:
Sven Efftinge - Initial contribution and API, Michael Clay

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.IXtextEditorCallback
IXtextEditorCallback.NullImpl
 
Constructor Summary
ValidatingEditorCallback()
           
 
Method Summary
 void afterCreatePartControl(XtextEditor editor)
           
 void afterSave(XtextEditor editor)
          Announce that the given editor's state is the same as the persisted state.
 
Methods inherited from class org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCallback
addVerifyListener, afterSetInput, beforeDispose, beforeSetInput, getDocument, getShell, isDirty, onValidateEditorInputState, removeVerifyListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatingEditorCallback

public ValidatingEditorCallback()
Method Detail

afterCreatePartControl

public void afterCreatePartControl(XtextEditor editor)
Specified by:
afterCreatePartControl in interface IXtextEditorCallback
Overrides:
afterCreatePartControl in class AbstractDirtyStateAwareEditorCallback

afterSave

public void afterSave(XtextEditor editor)
Description copied from interface: IXtextEditorCallback
Announce that the given editor's state is the same as the persisted state.

Specified by:
afterSave in interface IXtextEditorCallback
Overrides:
afterSave in class AbstractDirtyStateAwareEditorCallback
Parameters:
editor - the editor which has not any unsaved changes