com.aptana.ide.editors.unified
Class BaseDocumentProvider

java.lang.Object
  extended by org.eclipse.ui.editors.text.TextFileDocumentProvider
      extended by com.aptana.ide.editors.unified.BaseDocumentProvider
All Implemented Interfaces:
org.eclipse.ui.editors.text.IStorageDocumentProvider, org.eclipse.ui.texteditor.IDocumentProvider, org.eclipse.ui.texteditor.IDocumentProviderExtension, org.eclipse.ui.texteditor.IDocumentProviderExtension2, org.eclipse.ui.texteditor.IDocumentProviderExtension3, org.eclipse.ui.texteditor.IDocumentProviderExtension4, org.eclipse.ui.texteditor.IDocumentProviderExtension5
Direct Known Subclasses:
CSSDocumentProvider, HTMLDocumentProvider, JSDocumentProvider, XMLDocumentProvider

public class BaseDocumentProvider
extends org.eclipse.ui.editors.text.TextFileDocumentProvider

Overrides the base implementation for saving for saving. Used by UntitledTextFileEditor. non-project-based files

Author:
Ingo Muschenetz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ui.editors.text.TextFileDocumentProvider
org.eclipse.ui.editors.text.TextFileDocumentProvider.DocumentProviderOperation, org.eclipse.ui.editors.text.TextFileDocumentProvider.FileBufferListener, org.eclipse.ui.editors.text.TextFileDocumentProvider.FileInfo, org.eclipse.ui.editors.text.TextFileDocumentProvider.NullProvider
 
Constructor Summary
BaseDocumentProvider()
           
 
Method Summary
 boolean canSaveDocument(java.lang.Object element)
           
protected  org.eclipse.ui.editors.text.TextFileDocumentProvider.FileInfo createFileInfo(java.lang.Object element)
           
protected  org.eclipse.ui.editors.text.TextFileDocumentProvider.DocumentProviderOperation createSaveOperation(java.lang.Object element, org.eclipse.jface.text.IDocument document, boolean overwrite)
           
 
Methods inherited from class org.eclipse.ui.editors.text.TextFileDocumentProvider
aboutToChange, addElementStateListener, changed, commitFileBuffer, computeSchedulingRule, connect, createAnnotationModel, createEmptyFileInfo, createFileFromDocument, disconnect, disposeFileInfo, executeOperation, fireElementStateChangeFailed, fireElementStateChanging, getAnnotationModel, getConnectedElementsIterator, getContentType, getDefaultEncoding, getDocument, getElements, getEncoding, getFileInfo, getFileInfosIterator, getFileStore, getModificationStamp, getOperationRunner, getParentProvider, getProgressMonitor, getStatus, getSynchronizationStamp, getSystemFile, handleCoreException, isDeleted, isModifiable, isNotSynchronizedException, isReadOnly, isStateValidated, isSynchronized, isSystemFileReadOnly, mustSaveDocument, removeElementStateListener, resetDocument, saveDocument, setCanSaveDocument, setEncoding, setParentDocumentProvider, setProgressMonitor, setUpSynchronization, synchronize, updateStateCache, validateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDocumentProvider

public BaseDocumentProvider()
Method Detail

createSaveOperation

protected org.eclipse.ui.editors.text.TextFileDocumentProvider.DocumentProviderOperation createSaveOperation(java.lang.Object element,
                                                                                                             org.eclipse.jface.text.IDocument document,
                                                                                                             boolean overwrite)
                                                                                                      throws org.eclipse.core.runtime.CoreException
Overrides:
createSaveOperation in class org.eclipse.ui.editors.text.TextFileDocumentProvider
Throws:
org.eclipse.core.runtime.CoreException
See Also:
TextFileDocumentProvider.createSaveOperation(java.lang.Object, org.eclipse.jface.text.IDocument, boolean)

createFileInfo

protected org.eclipse.ui.editors.text.TextFileDocumentProvider.FileInfo createFileInfo(java.lang.Object element)
                                                                                throws org.eclipse.core.runtime.CoreException
Overrides:
createFileInfo in class org.eclipse.ui.editors.text.TextFileDocumentProvider
Throws:
org.eclipse.core.runtime.CoreException
See Also:
TextFileDocumentProvider.createFileInfo(java.lang.Object)

canSaveDocument

public boolean canSaveDocument(java.lang.Object element)
Specified by:
canSaveDocument in interface org.eclipse.ui.texteditor.IDocumentProvider
Overrides:
canSaveDocument in class org.eclipse.ui.editors.text.TextFileDocumentProvider
See Also:
IDocumentProvider.canSaveDocument(java.lang.Object)