Class WorkspaceSourceFile

java.lang.Object
org.eclipse.core.runtime.PlatformObject
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IElement, IElementImpl, IElementImplExtension, ISourceElementImpl, ISourceFileImpl, ISourceFileImplExtension, IElementImplSupport, IModelManager.Provider, ISourceElementImplSupport, ISourceFileImplSupport, ISourceElement, ISourceFile

public abstract class WorkspaceSourceFile extends SourceFile
Provides a skeletal implementation of ISourceFileImplExtension for source files residing in the workspace. Such files always have an underlying IFile. This class is just an implementation convenience. Clients might as well implement a workspace source file by extending SourceFile or implementing ("mixing in") ISourceFileImplSupport directly if extending this class is not possible/desirable for some reason.
See Also:
  • Constructor Details

    • WorkspaceSourceFile

      public WorkspaceSourceFile(IElement parent, org.eclipse.core.resources.IFile file)
      Constructs a handle for a source file with the given parent element and the given underlying IFile.
      Parameters:
      parent - the parent of the element, or null if the element has no parent
      file - the underlying IFile (not null)
  • Method Details

    • getResource_

      public final org.eclipse.core.resources.IResource getResource_()
      Returns the underlying IFile. This is a handle-only method.
      Returns:
      the underlying IFile (never null)
    • getFile_

      public final org.eclipse.core.resources.IFile getFile_()
      Returns the underlying IFile. This is a handle-only method.
      Returns:
      the underlying IFile (never null)
    • getFileObject_

      public final Object getFileObject_()
      Returns the underlying IFile. This is a handle-only method.
      Returns:
      the underlying IFile (never null)
      Since:
      1.3
      See Also: