org.eclipse.xtext.ui.editor
Class CompoundXtextEditorCallback

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback
All Implemented Interfaces:
IXtextEditorCallback

public class CompoundXtextEditorCallback
extends java.lang.Object
implements IXtextEditorCallback

Author:
Michael Clay - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.IXtextEditorCallback
IXtextEditorCallback.NullImpl
 
Constructor Summary
CompoundXtextEditorCallback(com.google.inject.Injector injector)
           
 
Method Summary
 void afterCreatePartControl(XtextEditor xtextEditor)
           
 void afterSave(XtextEditor xtextEditor)
          Announce that the given editor's state is the same as the persisted state.
 void afterSetInput(XtextEditor xtextEditor)
           
 void beforeDispose(XtextEditor xtextEditor)
           
 void beforeSetInput(XtextEditor xtextEditor)
           
protected  void handle(java.lang.Exception e)
           
 boolean onValidateEditorInputState(XtextEditor xtextEditor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundXtextEditorCallback

@Inject
public CompoundXtextEditorCallback(com.google.inject.Injector injector)
Method Detail

handle

protected void handle(java.lang.Exception e)

afterCreatePartControl

public void afterCreatePartControl(XtextEditor xtextEditor)
Specified by:
afterCreatePartControl in interface IXtextEditorCallback

afterSave

public void afterSave(XtextEditor xtextEditor)
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
Parameters:
xtextEditor - the editor which has not any unsaved changes

beforeDispose

public void beforeDispose(XtextEditor xtextEditor)
Specified by:
beforeDispose in interface IXtextEditorCallback

onValidateEditorInputState

public boolean onValidateEditorInputState(XtextEditor xtextEditor)
Specified by:
onValidateEditorInputState in interface IXtextEditorCallback

beforeSetInput

public void beforeSetInput(XtextEditor xtextEditor)
Specified by:
beforeSetInput in interface IXtextEditorCallback

afterSetInput

public void afterSetInput(XtextEditor xtextEditor)
Specified by:
afterSetInput in interface IXtextEditorCallback