|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.DirtyStateEditorSupport
public class DirtyStateEditorSupport
Nested Class Summary | |
---|---|
static interface |
DirtyStateEditorSupport.IConcurrentEditingCallback
Allows to mock the user decision in unit tests. |
static interface |
DirtyStateEditorSupport.IDirtyStateEditorSupportClient
Minimal required interface for clients. |
static class |
DirtyStateEditorSupport.InteractiveConcurrentEditingQuestion
|
protected class |
DirtyStateEditorSupport.UpdateEditorStateJob
|
Constructor Summary | |
---|---|
DirtyStateEditorSupport()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirtyStateEditorSupport()
Method Detail |
---|
public void initializeDirtyStateSupport(DirtyStateEditorSupport.IDirtyStateEditorSupportClient client)
public void verifyText(org.eclipse.swt.events.VerifyEvent e)
org.eclipse.swt.events.VerifyListener
A verify event occurs after the user has done something to modify the text (typically typed a key), but before the text is modified. The doit field in the verify event indicates whether or not to modify the text.
verifyText
in interface org.eclipse.swt.events.VerifyListener
e
- an event containing information about the verifypublic boolean doVerify()
public boolean isEditingPossible(DirtyStateEditorSupport.IDirtyStateEditorSupportClient client)
protected boolean isConcurrentEditingIgnored()
protected void initDirtyResource(IXtextDocument document)
public void removeDirtyStateSupport(DirtyStateEditorSupport.IDirtyStateEditorSupportClient client)
public void markEditorClean(DirtyStateEditorSupport.IDirtyStateEditorSupportClient client)
public void descriptionsChanged(IResourceDescription.Event event)
IResourceDescription.Event.Listener
The source will invoce this method to announce changed resource. The event will never be
null
. However, it may contain an empty list of deltas.
Listeners are free to remove themselves from the sender of the event or add other listeners. However added listeners will not be informed about the current change.
This event may be fired asynchronously. It is ensured that the changed resources will provide the content as it was when the change has been announced to the sender of the event.
descriptionsChanged
in interface IResourceDescription.Event.Listener
event
- the fired event. Will never be null
.public void scheduleUpdateEditorJob(IResourceDescription.Event event)
protected DirtyStateEditorSupport.UpdateEditorStateJob createUpdateEditorJob()
public void modelChanged(XtextResource resource)
modelChanged
in interface IXtextModelListener
public boolean haveEObjectDescriptionsChanged(IResourceDescription newDescription)
protected java.util.Collection<org.eclipse.emf.ecore.resource.Resource> collectAffectedResources(XtextResource resource, IResourceDescription.Event event)
protected boolean isReparseRequired(XtextResource resource, IResourceDescription.Event event)
protected boolean isDirty()
protected ChangedResourceDescriptionDelta createDelta(IResourceDescription.Delta delta, IResourceDescription.Delta prev)
public IDirtyStateManager getDirtyStateManager()
public void setDirtyStateManager(IDirtyStateManager dirtyStateManager)
public IStateChangeEventBroker getStateChangeEventBroker()
public void setStateChangeEventBroker(IStateChangeEventBroker stateChangeEventBroker)
public void setConcurrentEditingWarningDialog(DirtyStateEditorSupport.IConcurrentEditingCallback concurrentEditingWarningDialog)
public DirtyStateEditorSupport.IConcurrentEditingCallback getConcurrentEditingWarningDialog()
public void setDirtyResource(DocumentBasedDirtyResource dirtyResource)
public DocumentBasedDirtyResource getDirtyResource()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |