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 
     

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument
     
    protected org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.ElementInfo
     
    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
     
    protected void
     
    org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument
     
    long
     
     
     
    protected void
     
    protected void
     
    boolean
    isDeleted(Object element)
     
    boolean
     
    boolean
    isReadOnly(Object element)
     
    boolean
     
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.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 class org.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 element
      document - 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 class org.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 interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
      Overrides:
      getModificationStamp in class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
      Generated class or method.
    • isDeleted

      public boolean isDeleted(Object element)
      Specified by:
      isDeleted in interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
      Overrides:
      isDeleted in class org.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 class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
      Generated class or method.
    • isReadOnly

      public boolean isReadOnly(Object element)
      Specified by:
      isReadOnly in interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
      Overrides:
      isReadOnly in class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
      Generated class or method.
    • isModifiable

      public boolean isModifiable(Object element)
      Specified by:
      isModifiable in interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
      Overrides:
      isModifiable in class org.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 class org.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 interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider
      Overrides:
      isSynchronized in class org.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 class org.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 class org.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 interface org.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 interface org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider
      Generated class or method.
    • getOperationRunner

      protected IRunnableContext getOperationRunner(IProgressMonitor monitor)
      Specified by:
      getOperationRunner in class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
      Generated class or method.