public class DirtyStateEditorSupport extends Object implements IResourceDescription.Event.Listener, org.eclipse.swt.events.VerifyListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
DirtyStateEditorSupport.IConcurrentEditingCallback
Allows to mock the user decision in unit tests.
|
static interface |
DirtyStateEditorSupport.IDirtyStateEditorSupportClient
Minimal required interface for clients.
|
static interface |
DirtyStateEditorSupport.IDirtyStateEditorSupportClientExtension |
static class |
DirtyStateEditorSupport.InteractiveConcurrentEditingQuestion |
protected class |
DirtyStateEditorSupport.UpdateEditorStateJob |
| Constructor and Description |
|---|
DirtyStateEditorSupport() |
public void initializeDirtyStateSupport(DirtyStateEditorSupport.IDirtyStateEditorSupportClient client)
public void verifyText(org.eclipse.swt.events.VerifyEvent e)
verifyText in interface org.eclipse.swt.events.VerifyListenerpublic 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)
descriptionsChanged in interface IResourceDescription.Event.Listenerpublic void scheduleUpdateEditorJob(IResourceDescription.Event event)
public void waitForUpdateEditorJob()
throws InterruptedException
InterruptedExceptionpublic DirtyStateEditorSupport.UpdateEditorStateJob getUpdateEditorStateJob()
protected DirtyStateEditorSupport.UpdateEditorStateJob createUpdateEditorJob()
public void announceDirtyState(XtextResource resource)
public void modelChanged(XtextResource resource)
public void setResourceServiceProviderRegistry(IResourceServiceProvider.Registry resourceServiceProviderRegistry)
protected IResourceDescription.Manager getResourceDescriptionManager(org.eclipse.emf.common.util.URI resourceURI)
protected IResourceDescription.Manager getResourceDescriptionManagerIfOwnLanguage(XtextResource resource)
@Deprecated public boolean haveEObjectDescriptionsChanged(IResourceDescription newDescription)
public boolean haveEObjectDescriptionsChanged(IResourceDescription newDescription, IResourceDescription.Manager resourceDescriptionManager)
protected Collection<org.eclipse.emf.ecore.resource.Resource> collectAffectedResources(XtextResource resource, IResourceDescription.Event event)
protected void processDelta(IResourceDescription.Delta delta, org.eclipse.emf.ecore.resource.Resource context, List<org.eclipse.emf.ecore.resource.Resource> result)
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()
public void setResourceDescriptions(IResourceDescriptions resourceDescriptions)
Copyright © 2016. All Rights Reserved.