Class FileStreamContent

  • All Implemented Interfaces:
    StreamContent, org.eclipse.compare.IContentChangeNotifier, org.eclipse.compare.IEditableContent, org.eclipse.compare.IEditableContentExtension, org.eclipse.compare.IEncodedStreamContentAccessor, org.eclipse.compare.IModificationDate, org.eclipse.compare.IResourceProvider, org.eclipse.compare.IStreamContentAccessor, org.eclipse.compare.ITypedElement, org.eclipse.compare.structuremergeviewer.IStructureComparator, org.eclipse.core.runtime.IAdaptable

    public class FileStreamContent
    extends org.eclipse.compare.ResourceNode
    implements StreamContent
    Content for workspace files without document support.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean commitChanges​(org.eclipse.core.runtime.IProgressMonitor pm)  
      void dispose()  
      java.lang.Object getAdapter​(java.lang.Class adapter)  
      java.lang.String getFullName()  
      private org.eclipse.compare.ISharedDocumentAdapter getSharedDocumentAdapter()
      The code below is copy from org.eclipse.team.internal.ui.synchronize.LocalResourceTypedElement and is required to add full Java editor capabilities (content assist, navigation etc) to the compare editor
      void init​(AnyeditCompareInput input)  
      boolean isDirty()  
      boolean isDisposed()  
      StreamContent recreate()  
      void setContent​(byte[] contents)  
      void setDirty​(boolean dirty)  
      • Methods inherited from class org.eclipse.compare.ResourceNode

        createChild, createStream, equals, getCharset, getChildren, getContents, getImage, getModificationDate, getName, getResource, getType, hashCode, isEditable, isReadOnly, replace, validateEdit
      • Methods inherited from class org.eclipse.compare.BufferedContent

        addContentChangeListener, discardBuffer, fireContentChanged, getContent, removeContentChangeListener
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.compare.structuremergeviewer.IStructureComparator

        equals, getChildren
      • Methods inherited from interface org.eclipse.compare.ITypedElement

        getImage, getName, getType
    • Constructor Detail

      • FileStreamContent

        public FileStreamContent​(ContentWrapper content)
    • Method Detail

      • setContent

        public void setContent​(byte[] contents)
        Specified by:
        setContent in interface org.eclipse.compare.IEditableContent
        Overrides:
        setContent in class org.eclipse.compare.BufferedContent
      • commitChanges

        public boolean commitChanges​(org.eclipse.core.runtime.IProgressMonitor pm)
                              throws org.eclipse.core.runtime.CoreException
        Specified by:
        commitChanges in interface StreamContent
        Throws:
        org.eclipse.core.runtime.CoreException
      • getAdapter

        public java.lang.Object getAdapter​(java.lang.Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • getSharedDocumentAdapter

        private org.eclipse.compare.ISharedDocumentAdapter getSharedDocumentAdapter()
        The code below is copy from org.eclipse.team.internal.ui.synchronize.LocalResourceTypedElement and is required to add full Java editor capabilities (content assist, navigation etc) to the compare editor
        Returns: