Class AbstractVirtualFile

  • All Implemented Interfaces:
    org.eclipse.core.resources.IEncodedStorage, org.eclipse.core.resources.IFile, org.eclipse.core.resources.IResource, org.eclipse.core.resources.IStorage, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.jobs.ISchedulingRule
    Direct Known Subclasses:
    VirtualFile

    public abstract class AbstractVirtualFile
    extends org.eclipse.core.runtime.PlatformObject
    implements org.eclipse.core.resources.IFile
    Abstract virtual file.

    This implementation represents virtual, accessible, existing file. All methods about markers, location are delegated to file handle with provided path.

    This implementation should be used only with xtext editors.

    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.core.resources.IFile file  
      protected org.eclipse.core.resources.IProject project  
      • Fields inherited from interface org.eclipse.core.resources.IFile

        ENCODING_ISO_8859_1, ENCODING_UNKNOWN, ENCODING_US_ASCII, ENCODING_UTF_16, ENCODING_UTF_16BE, ENCODING_UTF_16LE, ENCODING_UTF_8
      • Fields inherited from interface org.eclipse.core.resources.IResource

        ALLOW_MISSING_LOCAL, ALWAYS_DELETE_PROJECT_CONTENT, AVOID_NATURE_CONFIG, BACKGROUND_REFRESH, CHECK_ANCESTORS, DEPTH_INFINITE, DEPTH_ONE, DEPTH_ZERO, DERIVED, FILE, FOLDER, FORCE, HIDDEN, KEEP_HISTORY, NEVER_DELETE_PROJECT_CONTENT, NONE, NULL_STAMP, PROJECT, REPLACE, ROOT, SHALLOW, TEAM_PRIVATE, VIRTUAL
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractVirtualFile​(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(org.eclipse.core.resources.IResourceProxyVisitor visitor, int memberFlags)  
      void accept​(org.eclipse.core.resources.IResourceProxyVisitor visitor, int depth, int memberFlags)  
      void accept​(org.eclipse.core.resources.IResourceVisitor visitor)  
      void accept​(org.eclipse.core.resources.IResourceVisitor visitor, int depth, boolean includePhantoms)  
      void accept​(org.eclipse.core.resources.IResourceVisitor visitor, int depth, int memberFlags)  
      void appendContents​(InputStream source, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void appendContents​(InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void clearHistory​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      boolean contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)  
      void copy​(org.eclipse.core.resources.IProjectDescription description, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void copy​(org.eclipse.core.resources.IProjectDescription description, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void copy​(org.eclipse.core.runtime.IPath destination, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void copy​(org.eclipse.core.runtime.IPath destination, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void create​(InputStream source, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void create​(InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void createLink​(URI location, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void createLink​(org.eclipse.core.runtime.IPath localLocation, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.core.resources.IMarker createMarker​(String type)  
      org.eclipse.core.resources.IResourceProxy createProxy()  
      void delete​(boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void delete​(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void delete​(int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void deleteMarkers​(String type, boolean includeSubtypes, int depth)  
      boolean equals​(Object obj)  
      boolean exists()  
      org.eclipse.core.resources.IMarker findMarker​(long id)  
      org.eclipse.core.resources.IMarker[] findMarkers​(String type, boolean includeSubtypes, int depth)  
      int findMaxProblemSeverity​(String type, boolean includeSubtypes, int depth)  
      Object getAdapter​(Class adapter)  
      String getCharset()  
      String getCharset​(boolean checkImplicit)  
      String getCharsetFor​(Reader reader)  
      org.eclipse.core.runtime.content.IContentDescription getContentDescription()  
      InputStream getContents()  
      String getFileExtension()  
      org.eclipse.core.runtime.IPath getFullPath()  
      org.eclipse.core.resources.IFileState[] getHistory​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      long getLocalTimeStamp()  
      org.eclipse.core.runtime.IPath getLocation()  
      URI getLocationURI()  
      org.eclipse.core.resources.IMarker getMarker​(long id)  
      long getModificationStamp()  
      String getName()  
      org.eclipse.core.resources.IContainer getParent()  
      org.eclipse.core.resources.IPathVariableManager getPathVariableManager()  
      Map<org.eclipse.core.runtime.QualifiedName,​String> getPersistentProperties()  
      String getPersistentProperty​(org.eclipse.core.runtime.QualifiedName key)  
      org.eclipse.core.resources.IProject getProject()  
      org.eclipse.core.runtime.IPath getProjectRelativePath()  
      org.eclipse.core.runtime.IPath getRawLocation()  
      URI getRawLocationURI()  
      org.eclipse.core.resources.ResourceAttributes getResourceAttributes()  
      Map<org.eclipse.core.runtime.QualifiedName,​Object> getSessionProperties()  
      Object getSessionProperty​(org.eclipse.core.runtime.QualifiedName key)  
      int getType()  
      org.eclipse.core.resources.IWorkspace getWorkspace()  
      int hashCode()  
      boolean isAccessible()  
      boolean isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)  
      boolean isDerived()  
      boolean isDerived​(int options)  
      boolean isHidden()  
      boolean isHidden​(int options)  
      boolean isLinked()  
      boolean isLinked​(int options)  
      boolean isLocal​(int depth)  
      boolean isPhantom()  
      boolean isReadOnly()  
      boolean isSynchronized​(int depth)  
      boolean isTeamPrivateMember()  
      boolean isTeamPrivateMember​(int options)  
      boolean isVirtual()  
      void move​(org.eclipse.core.resources.IProjectDescription description, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void move​(org.eclipse.core.resources.IProjectDescription description, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void move​(org.eclipse.core.runtime.IPath destination, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void move​(org.eclipse.core.runtime.IPath destination, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void move​(org.eclipse.core.runtime.IPath destination, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void refreshLocal​(int depth, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void revertModificationStamp​(long value)  
      void setCharset​(String newCharset)  
      void setCharset​(String newCharset, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setContents​(InputStream content, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setContents​(org.eclipse.core.resources.IFileState source, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setContents​(org.eclipse.core.resources.IFileState content, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setDerived​(boolean isDerived)  
      void setDerived​(boolean isDerived, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setHidden​(boolean isHidden)  
      void setLocal​(boolean flag, int depth, org.eclipse.core.runtime.IProgressMonitor monitor)  
      long setLocalTimeStamp​(long value)  
      void setPersistentProperty​(org.eclipse.core.runtime.QualifiedName key, String value)  
      void setReadOnly​(boolean readOnly)  
      void setResourceAttributes​(org.eclipse.core.resources.ResourceAttributes attributes)  
      void setSessionProperty​(org.eclipse.core.runtime.QualifiedName key, Object value)  
      void setTeamPrivateMember​(boolean isTeamPrivate)  
      void touch​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from interface org.eclipse.core.resources.IFile

        getContents, getEncoding, setContents
    • Field Detail

      • file

        protected final org.eclipse.core.resources.IFile file
      • project

        protected final org.eclipse.core.resources.IProject project
    • Constructor Detail

      • AbstractVirtualFile

        public AbstractVirtualFile​(org.eclipse.core.resources.IProject project,
                                   org.eclipse.core.runtime.IPath path)
    • Method Detail

      • accept

        public void accept​(org.eclipse.core.resources.IResourceProxyVisitor visitor,
                           int memberFlags)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        accept in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • accept

        public void accept​(org.eclipse.core.resources.IResourceProxyVisitor visitor,
                           int depth,
                           int memberFlags)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        accept in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • accept

        public void accept​(org.eclipse.core.resources.IResourceVisitor visitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        accept in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • accept

        public void accept​(org.eclipse.core.resources.IResourceVisitor visitor,
                           int depth,
                           boolean includePhantoms)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        accept in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • accept

        public void accept​(org.eclipse.core.resources.IResourceVisitor visitor,
                           int depth,
                           int memberFlags)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        accept in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • clearHistory

        public void clearHistory​(org.eclipse.core.runtime.IProgressMonitor monitor)
                          throws org.eclipse.core.runtime.CoreException
        Specified by:
        clearHistory in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • copy

        public void copy​(org.eclipse.core.runtime.IPath destination,
                         boolean force,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        copy in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • copy

        public void copy​(org.eclipse.core.runtime.IPath destination,
                         int updateFlags,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        copy in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • copy

        public void copy​(org.eclipse.core.resources.IProjectDescription description,
                         boolean force,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        copy in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • copy

        public void copy​(org.eclipse.core.resources.IProjectDescription description,
                         int updateFlags,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        copy in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • createMarker

        public org.eclipse.core.resources.IMarker createMarker​(String type)
                                                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        createMarker in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • createProxy

        public org.eclipse.core.resources.IResourceProxy createProxy()
        Specified by:
        createProxy in interface org.eclipse.core.resources.IResource
      • delete

        public void delete​(boolean force,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        delete in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • delete

        public void delete​(int updateFlags,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        delete in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • deleteMarkers

        public void deleteMarkers​(String type,
                                  boolean includeSubtypes,
                                  int depth)
                           throws org.eclipse.core.runtime.CoreException
        Specified by:
        deleteMarkers in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • exists

        public boolean exists()
        Specified by:
        exists in interface org.eclipse.core.resources.IResource
      • findMarker

        public org.eclipse.core.resources.IMarker findMarker​(long id)
                                                      throws org.eclipse.core.runtime.CoreException
        Specified by:
        findMarker in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • findMarkers

        public org.eclipse.core.resources.IMarker[] findMarkers​(String type,
                                                                boolean includeSubtypes,
                                                                int depth)
                                                         throws org.eclipse.core.runtime.CoreException
        Specified by:
        findMarkers in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • findMaxProblemSeverity

        public int findMaxProblemSeverity​(String type,
                                          boolean includeSubtypes,
                                          int depth)
                                   throws org.eclipse.core.runtime.CoreException
        Specified by:
        findMaxProblemSeverity in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getFileExtension

        public String getFileExtension()
        Specified by:
        getFileExtension in interface org.eclipse.core.resources.IResource
      • getLocalTimeStamp

        public long getLocalTimeStamp()
        Specified by:
        getLocalTimeStamp in interface org.eclipse.core.resources.IResource
      • getLocation

        public org.eclipse.core.runtime.IPath getLocation()
        Specified by:
        getLocation in interface org.eclipse.core.resources.IResource
      • getLocationURI

        public URI getLocationURI()
        Specified by:
        getLocationURI in interface org.eclipse.core.resources.IResource
      • getMarker

        public org.eclipse.core.resources.IMarker getMarker​(long id)
        Specified by:
        getMarker in interface org.eclipse.core.resources.IResource
      • getModificationStamp

        public long getModificationStamp()
        Specified by:
        getModificationStamp in interface org.eclipse.core.resources.IResource
      • getPathVariableManager

        public org.eclipse.core.resources.IPathVariableManager getPathVariableManager()
        Specified by:
        getPathVariableManager in interface org.eclipse.core.resources.IResource
      • getParent

        public org.eclipse.core.resources.IContainer getParent()
        Specified by:
        getParent in interface org.eclipse.core.resources.IResource
      • getPersistentProperties

        public Map<org.eclipse.core.runtime.QualifiedName,​String> getPersistentProperties()
                                                                                         throws org.eclipse.core.runtime.CoreException
        Specified by:
        getPersistentProperties in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getPersistentProperty

        public String getPersistentProperty​(org.eclipse.core.runtime.QualifiedName key)
                                     throws org.eclipse.core.runtime.CoreException
        Specified by:
        getPersistentProperty in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getProject

        public org.eclipse.core.resources.IProject getProject()
        Specified by:
        getProject in interface org.eclipse.core.resources.IResource
      • getProjectRelativePath

        public org.eclipse.core.runtime.IPath getProjectRelativePath()
        Specified by:
        getProjectRelativePath in interface org.eclipse.core.resources.IResource
      • getRawLocation

        public org.eclipse.core.runtime.IPath getRawLocation()
        Specified by:
        getRawLocation in interface org.eclipse.core.resources.IResource
      • getRawLocationURI

        public URI getRawLocationURI()
        Specified by:
        getRawLocationURI in interface org.eclipse.core.resources.IResource
      • getResourceAttributes

        public org.eclipse.core.resources.ResourceAttributes getResourceAttributes()
        Specified by:
        getResourceAttributes in interface org.eclipse.core.resources.IResource
      • getSessionProperties

        public Map<org.eclipse.core.runtime.QualifiedName,​Object> getSessionProperties()
                                                                                      throws org.eclipse.core.runtime.CoreException
        Specified by:
        getSessionProperties in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getSessionProperty

        public Object getSessionProperty​(org.eclipse.core.runtime.QualifiedName key)
                                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        getSessionProperty in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getType

        public int getType()
        Specified by:
        getType in interface org.eclipse.core.resources.IResource
      • getWorkspace

        public org.eclipse.core.resources.IWorkspace getWorkspace()
        Specified by:
        getWorkspace in interface org.eclipse.core.resources.IResource
      • isAccessible

        public boolean isAccessible()
        Specified by:
        isAccessible in interface org.eclipse.core.resources.IResource
      • isDerived

        public boolean isDerived()
        Specified by:
        isDerived in interface org.eclipse.core.resources.IResource
      • isDerived

        public boolean isDerived​(int options)
        Specified by:
        isDerived in interface org.eclipse.core.resources.IResource
      • isHidden

        public boolean isHidden()
        Specified by:
        isHidden in interface org.eclipse.core.resources.IResource
      • isHidden

        public boolean isHidden​(int options)
        Specified by:
        isHidden in interface org.eclipse.core.resources.IResource
      • isLinked

        public boolean isLinked()
        Specified by:
        isLinked in interface org.eclipse.core.resources.IResource
      • isVirtual

        public boolean isVirtual()
        Specified by:
        isVirtual in interface org.eclipse.core.resources.IResource
      • isLinked

        public boolean isLinked​(int options)
        Specified by:
        isLinked in interface org.eclipse.core.resources.IResource
      • isLocal

        public boolean isLocal​(int depth)
        Specified by:
        isLocal in interface org.eclipse.core.resources.IResource
      • isPhantom

        public boolean isPhantom()
        Specified by:
        isPhantom in interface org.eclipse.core.resources.IResource
      • isSynchronized

        public boolean isSynchronized​(int depth)
        Specified by:
        isSynchronized in interface org.eclipse.core.resources.IResource
      • isTeamPrivateMember

        public boolean isTeamPrivateMember()
        Specified by:
        isTeamPrivateMember in interface org.eclipse.core.resources.IResource
      • isTeamPrivateMember

        public boolean isTeamPrivateMember​(int options)
        Specified by:
        isTeamPrivateMember in interface org.eclipse.core.resources.IResource
      • move

        public void move​(org.eclipse.core.runtime.IPath destination,
                         boolean force,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        move in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • move

        public void move​(org.eclipse.core.runtime.IPath destination,
                         int updateFlags,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        move in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • move

        public void move​(org.eclipse.core.resources.IProjectDescription description,
                         boolean force,
                         boolean keepHistory,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        move in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • move

        public void move​(org.eclipse.core.resources.IProjectDescription description,
                         int updateFlags,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        move in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • refreshLocal

        public void refreshLocal​(int depth,
                                 org.eclipse.core.runtime.IProgressMonitor monitor)
                          throws org.eclipse.core.runtime.CoreException
        Specified by:
        refreshLocal in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • revertModificationStamp

        public void revertModificationStamp​(long value)
                                     throws org.eclipse.core.runtime.CoreException
        Specified by:
        revertModificationStamp in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setDerived

        public void setDerived​(boolean isDerived)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        setDerived in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setDerived

        public void setDerived​(boolean isDerived,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        setDerived in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setHidden

        public void setHidden​(boolean isHidden)
                       throws org.eclipse.core.runtime.CoreException
        Specified by:
        setHidden in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setLocal

        public void setLocal​(boolean flag,
                             int depth,
                             org.eclipse.core.runtime.IProgressMonitor monitor)
                      throws org.eclipse.core.runtime.CoreException
        Specified by:
        setLocal in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setLocalTimeStamp

        public long setLocalTimeStamp​(long value)
                               throws org.eclipse.core.runtime.CoreException
        Specified by:
        setLocalTimeStamp in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setPersistentProperty

        public void setPersistentProperty​(org.eclipse.core.runtime.QualifiedName key,
                                          String value)
                                   throws org.eclipse.core.runtime.CoreException
        Specified by:
        setPersistentProperty in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        Specified by:
        setReadOnly in interface org.eclipse.core.resources.IResource
      • setResourceAttributes

        public void setResourceAttributes​(org.eclipse.core.resources.ResourceAttributes attributes)
                                   throws org.eclipse.core.runtime.CoreException
        Specified by:
        setResourceAttributes in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setSessionProperty

        public void setSessionProperty​(org.eclipse.core.runtime.QualifiedName key,
                                       Object value)
                                throws org.eclipse.core.runtime.CoreException
        Specified by:
        setSessionProperty in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • setTeamPrivateMember

        public void setTeamPrivateMember​(boolean isTeamPrivate)
                                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        setTeamPrivateMember in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • touch

        public void touch​(org.eclipse.core.runtime.IProgressMonitor monitor)
                   throws org.eclipse.core.runtime.CoreException
        Specified by:
        touch in interface org.eclipse.core.resources.IResource
        Throws:
        org.eclipse.core.runtime.CoreException
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        Overrides:
        getAdapter in class org.eclipse.core.runtime.PlatformObject
      • contains

        public boolean contains​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
        Specified by:
        contains in interface org.eclipse.core.runtime.jobs.ISchedulingRule
      • isConflicting

        public boolean isConflicting​(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
        Specified by:
        isConflicting in interface org.eclipse.core.runtime.jobs.ISchedulingRule
      • appendContents

        public void appendContents​(InputStream source,
                                   boolean force,
                                   boolean keepHistory,
                                   org.eclipse.core.runtime.IProgressMonitor monitor)
                            throws org.eclipse.core.runtime.CoreException
        Specified by:
        appendContents in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • appendContents

        public void appendContents​(InputStream source,
                                   int updateFlags,
                                   org.eclipse.core.runtime.IProgressMonitor monitor)
                            throws org.eclipse.core.runtime.CoreException
        Specified by:
        appendContents in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • create

        public void create​(InputStream source,
                           boolean force,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        create in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • create

        public void create​(InputStream source,
                           int updateFlags,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        create in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • createLink

        public void createLink​(org.eclipse.core.runtime.IPath localLocation,
                               int updateFlags,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        createLink in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • createLink

        public void createLink​(URI location,
                               int updateFlags,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        createLink in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • delete

        public void delete​(boolean force,
                           boolean keepHistory,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws org.eclipse.core.runtime.CoreException
        Specified by:
        delete in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getCharset

        public String getCharset()
                          throws org.eclipse.core.runtime.CoreException
        Specified by:
        getCharset in interface org.eclipse.core.resources.IEncodedStorage
        Specified by:
        getCharset in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getCharset

        public String getCharset​(boolean checkImplicit)
                          throws org.eclipse.core.runtime.CoreException
        Specified by:
        getCharset in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getCharsetFor

        public String getCharsetFor​(Reader reader)
                             throws org.eclipse.core.runtime.CoreException
        Specified by:
        getCharsetFor in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getContentDescription

        public org.eclipse.core.runtime.content.IContentDescription getContentDescription()
                                                                                   throws org.eclipse.core.runtime.CoreException
        Specified by:
        getContentDescription in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getContents

        public InputStream getContents()
                                throws org.eclipse.core.runtime.CoreException
        Specified by:
        getContents in interface org.eclipse.core.resources.IFile
        Specified by:
        getContents in interface org.eclipse.core.resources.IStorage
        Throws:
        org.eclipse.core.runtime.CoreException
      • getFullPath

        public org.eclipse.core.runtime.IPath getFullPath()
        Specified by:
        getFullPath in interface org.eclipse.core.resources.IFile
        Specified by:
        getFullPath in interface org.eclipse.core.resources.IResource
        Specified by:
        getFullPath in interface org.eclipse.core.resources.IStorage
      • getHistory

        public org.eclipse.core.resources.IFileState[] getHistory​(org.eclipse.core.runtime.IProgressMonitor monitor)
                                                           throws org.eclipse.core.runtime.CoreException
        Specified by:
        getHistory in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.core.resources.IFile
        Specified by:
        getName in interface org.eclipse.core.resources.IResource
        Specified by:
        getName in interface org.eclipse.core.resources.IStorage
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.eclipse.core.resources.IFile
        Specified by:
        isReadOnly in interface org.eclipse.core.resources.IResource
        Specified by:
        isReadOnly in interface org.eclipse.core.resources.IStorage
      • move

        public void move​(org.eclipse.core.runtime.IPath destination,
                         boolean force,
                         boolean keepHistory,
                         org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
        Specified by:
        move in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • setCharset

        public void setCharset​(String newCharset)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        setCharset in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • setCharset

        public void setCharset​(String newCharset,
                               org.eclipse.core.runtime.IProgressMonitor monitor)
                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        setCharset in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • setContents

        public void setContents​(InputStream content,
                                boolean force,
                                boolean keepHistory,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
        Specified by:
        setContents in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • setContents

        public void setContents​(org.eclipse.core.resources.IFileState source,
                                boolean force,
                                boolean keepHistory,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
        Specified by:
        setContents in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • setContents

        public void setContents​(org.eclipse.core.resources.IFileState content,
                                int updateFlags,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
        Specified by:
        setContents in interface org.eclipse.core.resources.IFile
        Throws:
        org.eclipse.core.runtime.CoreException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.eclipse.core.resources.IResource
        Overrides:
        equals in class Object