DirtyStateEditorSupport
is directly served by the XtextEditor
@Deprecated public abstract class AbstractDirtyStateAwareEditorCallback extends java.lang.Object implements IXtextEditorCallback, DirtyStateEditorSupport.IDirtyStateEditorSupportClient
IXtextEditorCallback.NullImpl
Constructor and Description |
---|
AbstractDirtyStateAwareEditorCallback()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addVerifyListener(org.eclipse.swt.events.VerifyListener listener)
Deprecated.
|
void |
afterCreatePartControl(XtextEditor editor)
Deprecated.
|
void |
afterSave(XtextEditor editor)
Deprecated.
Announce that the given editor's state is the same as the persisted state.
|
void |
afterSetInput(XtextEditor editor)
Deprecated.
|
void |
beforeDispose(XtextEditor editor)
Deprecated.
|
void |
beforeSetInput(XtextEditor editor)
Deprecated.
|
IXtextDocument |
getDocument()
Deprecated.
|
org.eclipse.swt.widgets.Shell |
getShell()
Deprecated.
May return
null in headless environments. |
boolean |
isDirty()
Deprecated.
|
boolean |
onValidateEditorInputState(XtextEditor editor)
Deprecated.
|
void |
removeVerifyListener(org.eclipse.swt.events.VerifyListener listener)
Deprecated.
|
public AbstractDirtyStateAwareEditorCallback()
public void afterCreatePartControl(XtextEditor editor)
afterCreatePartControl
in interface IXtextEditorCallback
public void beforeDispose(XtextEditor editor)
beforeDispose
in interface IXtextEditorCallback
public void afterSave(XtextEditor editor)
IXtextEditorCallback
afterSave
in interface IXtextEditorCallback
editor
- the editor which has not any unsaved changespublic boolean onValidateEditorInputState(XtextEditor editor)
onValidateEditorInputState
in interface IXtextEditorCallback
public void beforeSetInput(XtextEditor editor)
beforeSetInput
in interface IXtextEditorCallback
public void afterSetInput(XtextEditor editor)
afterSetInput
in interface IXtextEditorCallback
public boolean isDirty()
isDirty
in interface DirtyStateEditorSupport.IDirtyStateEditorSupportClient
public IXtextDocument getDocument()
getDocument
in interface DirtyStateEditorSupport.IDirtyStateEditorSupportClient
public void addVerifyListener(org.eclipse.swt.events.VerifyListener listener)
addVerifyListener
in interface DirtyStateEditorSupport.IDirtyStateEditorSupportClient
public org.eclipse.swt.widgets.Shell getShell()
DirtyStateEditorSupport.IDirtyStateEditorSupportClient
null
in headless environments.getShell
in interface DirtyStateEditorSupport.IDirtyStateEditorSupportClient
public void removeVerifyListener(org.eclipse.swt.events.VerifyListener listener)
removeVerifyListener
in interface DirtyStateEditorSupport.IDirtyStateEditorSupportClient