Class AbstractFileSystemAccess2

    • Constructor Detail

      • AbstractFileSystemAccess2

        public AbstractFileSystemAccess2()
    • Method Detail

      • setContext

        public void setContext​(java.lang.Object context)
        Sets the context to further configure this file system access instance.
        Parameters:
        context - a context from which project configuration can be obtained. Supported context types depend on the concrete implementation, but Resource is usually a good fit.
        Since:
        2.8
      • isFile

        public boolean isFile​(java.lang.String path)
                       throws org.eclipse.xtext.util.RuntimeIOException
        Description copied from interface: IFileSystemAccess2
        Tests whether the file exists at the location in the default output configuration. Returns true if the file at the described location exists and is a normal file (not a directory). Otherwise false.
        Specified by:
        isFile in interface IFileSystemAccess2
        Parameters:
        path - using '/' as path separator
        Returns:
        true when the file at the given path exists and is a normal file. Will return false when the path belongs to a directory.
        Throws:
        org.eclipse.xtext.util.RuntimeIOException
        Since:
        2.9
      • isFile

        public boolean isFile​(java.lang.String path,
                              java.lang.String outputConfigurationName)
                       throws org.eclipse.xtext.util.RuntimeIOException
        Description copied from interface: IFileSystemAccess2
        Tests whether the file exists at the location denoted by the output configuration. Returns true if the file at the described location exists and is a normal file (not a directory). Otherwise false.
        Specified by:
        isFile in interface IFileSystemAccess2
        Parameters:
        path - using '/' as path separator
        outputConfigurationName - the name of the output configuration
        Returns:
        true when the file at the given path exists and is a normal file. Will return false when the path belongs to a directory.
        Throws:
        org.eclipse.xtext.util.RuntimeIOException
        Since:
        2.9