|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDocumentProvider
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDiagramDocumentProvider
public class StorageDiagramDocumentProvider
An implementation of IDiagramDocumentProvider for
connecting org.eclipse.ui.IStorageEditorInput and
IDiagramDocument.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDocumentProvider |
|---|
StorageDocumentProvider.StorageInfo |
| Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider |
|---|
AbstractDocumentProvider.DocumentProviderOperation, 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 | |
|---|---|
StorageDiagramDocumentProvider()
|
|
| Method Summary | |
|---|---|
protected IDocument |
createEmptyDocument()
Factory method for creating empty documents. |
IEditorInput |
createInputWithEditingDomain(IEditorInput editorInput,
TransactionalEditingDomain domain)
|
AbstractDocumentProvider.ElementInfo |
createNewElementInfo(IDocument document)
Create a new ElementInfo |
protected void |
disposeElementInfo(java.lang.Object element,
AbstractDocumentProvider.ElementInfo info)
Disposes of the given element info object. |
IDiagramDocument |
getDiagramDocument(java.lang.Object element)
Returns the diagram document. |
protected boolean |
setDocumentContent(IDocument document,
IEditorInput editorInput)
Initializes the given document from the given editor input using the given character encoding. |
protected void |
setDocumentContentFromStorage(IDocument document,
IStorage storage)
Initializes the given document with the given stream using the given encoding. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.StorageDocumentProvider |
|---|
createDocument, createElementInfo, doSaveDocument, doUpdateStateCache, getOperationRunner, handleCoreException, isModifiable, isReadOnly, setupDocument, updateCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageDiagramDocumentProvider()
| Method Detail |
|---|
protected IDocument createEmptyDocument()
StorageDocumentProvider
createEmptyDocument in class StorageDocumentProviderpublic IDiagramDocument getDiagramDocument(java.lang.Object element)
IDiagramDocumentProvider
getDiagramDocument in interface IDiagramDocumentProviderelement - The Editor Input for which the diagram document is requred.
IDocumentProvider.getDocument(Object)
protected void disposeElementInfo(java.lang.Object element,
AbstractDocumentProvider.ElementInfo info)
AbstractDocumentProvider
This method is called when an element info is disposed. The
AbstractDocumentProvider implementation of this
method does nothing. Subclasses may reimplement.
disposeElementInfo in class AbstractDocumentProviderelement - the elementinfo - the element info object
protected void setDocumentContentFromStorage(IDocument document,
IStorage storage)
throws CoreException
StorageDocumentProvider
setDocumentContentFromStorage in class StorageDocumentProviderdocument - the document to be initialized
CoreException - if the given stream can not be read
protected boolean setDocumentContent(IDocument document,
IEditorInput editorInput)
throws CoreException
StorageDocumentProvider
setDocumentContent in class StorageDocumentProviderdocument - the document to be initializededitorInput - the input from which to derive the content of the document
true if the document content could be set, false otherwise
CoreException - if the given editor input cannot be accessed
public IEditorInput createInputWithEditingDomain(IEditorInput editorInput,
TransactionalEditingDomain domain)
createInputWithEditingDomain in interface IDiagramDocumentProviderpublic AbstractDocumentProvider.ElementInfo createNewElementInfo(IDocument document)
StorageDocumentProvider
createNewElementInfo in class StorageDocumentProvider
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.