Class EMFProfileDocumentProvider
- java.lang.Object
-
- org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
-
- org.modelversioning.emfprofile.diagram.part.EMFProfileDocumentProvider
-
- All Implemented Interfaces:
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider
,org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
public class EMFProfileDocumentProvider extends org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider implements org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider
- Generated class or method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
EMFProfileDocumentProvider.ResourceSetInfo
-
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.DocumentProviderOperation, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo
-
-
Constructor Summary
Constructors Constructor Description EMFProfileDocumentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument
createDocument(Object element)
protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo
createElementInfo(Object element)
protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument
createEmptyDocument()
IEditorInput
createInputWithEditingDomain(IEditorInput editorInput, org.eclipse.emf.transaction.TransactionalEditingDomain domain)
protected void
disposeElementInfo(Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo info)
protected void
doSaveDocument(IProgressMonitor monitor, Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document, boolean overwrite)
protected void
doSynchronize(Object element, IProgressMonitor monitor)
protected void
doUpdateStateCache(Object element)
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument
getDiagramDocument(Object element)
long
getModificationStamp(Object element)
protected IRunnableContext
getOperationRunner(IProgressMonitor monitor)
EMFProfileDocumentProvider.ResourceSetInfo
getResourceSetInfo(Object editorInput)
protected void
handleElementChanged(EMFProfileDocumentProvider.ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor)
protected void
handleElementMoved(IEditorInput input, URI uri)
boolean
isDeleted(Object element)
boolean
isModifiable(Object element)
boolean
isReadOnly(Object element)
boolean
isSynchronized(Object element)
protected void
setDocumentContent(org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document, IEditorInput element)
protected void
setupDocument(Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document)
Sets up the given document as it would be provided for the given element.protected void
updateCache(Object element)
-
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
aboutToChange, addElementStateListener, addUnchangedElementListeners, canSaveDocument, changed, connect, connected, disconnect, disconnected, doResetDocument, doValidateState, executeOperation, fireElementContentAboutToBeReplaced, fireElementContentReplaced, fireElementDeleted, fireElementDirtyStateChanged, fireElementMoved, fireElementStateChangeFailed, fireElementStateChanging, fireElementStateValidationChanged, getConnectedElements, getDocument, getElementInfo, getProgressMonitor, getResetOperation, getResetRule, getSaveOperation, getSaveRule, getStatus, getSynchronizationStamp, getSynchronizeRule, getValidateStateRule, invalidatesState, isStateValidated, mustSaveDocument, removeElementStateListener, removeUnchangedElementListeners, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState
-
-
-
-
Method Detail
-
createElementInfo
protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo createElementInfo(Object element) throws CoreException
- Overrides:
createElementInfo
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
createDocument
protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument createDocument(Object element) throws CoreException
- Specified by:
createDocument
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
setupDocument
protected void setupDocument(Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document)
Sets up the given document as it would be provided for the given element. The content of the document is not changed. This default implementation is empty. Subclasses may reimplement.- Parameters:
element
- the blue-print elementdocument
- the document to set up- Generated class or method.
-
createEmptyDocument
protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument createEmptyDocument()
- Specified by:
createEmptyDocument
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
setDocumentContent
protected void setDocumentContent(org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document, IEditorInput element) throws CoreException
- Throws:
CoreException
- Generated class or method.
-
getModificationStamp
public long getModificationStamp(Object element)
- Specified by:
getModificationStamp
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
- Overrides:
getModificationStamp
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
isDeleted
public boolean isDeleted(Object element)
- Specified by:
isDeleted
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
- Overrides:
isDeleted
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
getResourceSetInfo
public EMFProfileDocumentProvider.ResourceSetInfo getResourceSetInfo(Object editorInput)
- Generated class or method.
-
disposeElementInfo
protected void disposeElementInfo(Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo info)
- Overrides:
disposeElementInfo
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
isReadOnly
public boolean isReadOnly(Object element)
- Specified by:
isReadOnly
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
- Overrides:
isReadOnly
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
isModifiable
public boolean isModifiable(Object element)
- Specified by:
isModifiable
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
- Overrides:
isModifiable
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
updateCache
protected void updateCache(Object element) throws CoreException
- Throws:
CoreException
- Generated class or method.
-
doUpdateStateCache
protected void doUpdateStateCache(Object element) throws CoreException
- Overrides:
doUpdateStateCache
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
isSynchronized
public boolean isSynchronized(Object element)
- Specified by:
isSynchronized
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
- Overrides:
isSynchronized
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
doSynchronize
protected void doSynchronize(Object element, IProgressMonitor monitor) throws CoreException
- Overrides:
doSynchronize
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
doSaveDocument
protected void doSaveDocument(IProgressMonitor monitor, Object element, org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument document, boolean overwrite) throws CoreException
- Specified by:
doSaveDocument
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
handleElementChanged
protected void handleElementChanged(EMFProfileDocumentProvider.ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor)
- Generated class or method.
-
handleElementMoved
protected void handleElementMoved(IEditorInput input, URI uri)
- Generated class or method.
-
createInputWithEditingDomain
public IEditorInput createInputWithEditingDomain(IEditorInput editorInput, org.eclipse.emf.transaction.TransactionalEditingDomain domain)
- Specified by:
createInputWithEditingDomain
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider
- Generated class or method.
-
getDiagramDocument
public org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument getDiagramDocument(Object element)
- Specified by:
getDiagramDocument
in interfaceorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider
- Generated class or method.
-
getOperationRunner
protected IRunnableContext getOperationRunner(IProgressMonitor monitor)
- Specified by:
getOperationRunner
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
-