Class PalladioComponentModelDocumentProvider
java.lang.Object
org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
de.uka.ipd.sdq.pcm.gmf.allocation.part.PalladioComponentModelDocumentProvider
- 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 PalladioComponentModelDocumentProvider
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
Modifier and TypeClassDescriptionprotected class
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) protected void
doValidateState
(Object element, Object computationContext) org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument
getDiagramDocument
(Object element) long
getModificationStamp
(Object element) protected IRunnableContext
getOperationRunner
(IProgressMonitor monitor) protected ISchedulingRule
getResetRule
(Object element) getResourceSetInfo
(Object editorInput) protected ISchedulingRule
getSaveRule
(Object element) protected ISchedulingRule
getSynchronizeRule
(Object element) protected ISchedulingRule
getValidateStateRule
(Object element) protected void
handleElementChanged
(PalladioComponentModelDocumentProvider.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, executeOperation, fireElementContentAboutToBeReplaced, fireElementContentReplaced, fireElementDeleted, fireElementDirtyStateChanged, fireElementMoved, fireElementStateChangeFailed, fireElementStateChanging, fireElementStateValidationChanged, getConnectedElements, getDocument, getElementInfo, getProgressMonitor, getResetOperation, getSaveOperation, getStatus, getSynchronizationStamp, invalidatesState, isStateValidated, mustSaveDocument, removeElementStateListener, removeUnchangedElementListeners, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState
-
Constructor Details
-
PalladioComponentModelDocumentProvider
public PalladioComponentModelDocumentProvider()
-
-
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
public PalladioComponentModelDocumentProvider.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.
-
doValidateState
- Overrides:
doValidateState
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Throws:
CoreException
- 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.
-
getResetRule
- Overrides:
getResetRule
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
getSaveRule
- Overrides:
getSaveRule
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
getSynchronizeRule
- Overrides:
getSynchronizeRule
in classorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
- Generated class or method.
-
getValidateStateRule
- Overrides:
getValidateStateRule
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(PalladioComponentModelDocumentProvider.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.
-