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/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
-
Field Summary
Fields inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
PR10806_UC5_ENABLED, PR14469_ENABLED, STATUS_ERROR, STATUS_OK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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) getResourceSetInfo
(Object editorInput) protected void
handleElementChanged
(EMFProfileDocumentProvider.ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor) protected void
handleElementMoved
(IEditorInput input, URI uri) boolean
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
-
Constructor Details
-
EMFProfileDocumentProvider
public EMFProfileDocumentProvider()
-
-
Method Details
-
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
- 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
- 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
- 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
- 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
- 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
- Throws:
CoreException
- Generated class or method.
-
doUpdateStateCache
- Overrides:
doUpdateStateCache
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- Generated class or method.
-
isSynchronized
- 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
- 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
- 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
- Specified by:
getOperationRunner
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-