public abstract class WorkspaceSourceFile extends SourceFile
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.BaseSourceFile,
FsSourceFileISourceFileImplSupport.NotifyingReconcileOperation, ISourceFileImplSupport.ReconcileOperationIElementImplExtension.CloseHintSOURCE_AST, SOURCE_CONTENTS, SOURCE_SNAPSHOTNEW_ELEMENTS, NO_BODYCLOSE_HINT, FORCE_OPENWORKING_COPY_BUFFER, WORKING_COPY_CALLBACK, WORKING_COPY_CONTEXT| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.resources.IFile |
getFile_()
Returns the underlying
IFile. |
java.lang.Object |
getFileObject_()
Returns the underlying
IFile. |
org.eclipse.core.resources.IResource |
getResource_()
Returns the underlying
IFile. |
equals, getName_, getParent_, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitacquireExistingWorkingCopy_, becomeWorkingCopy_, buildSourceStructure_, buildStructure_, close_, defaultEquals_, defaultHashCode_, fileExists_, getBuffer_, getFileBuffer_, getFileSnapshotProvider_, getReconcileOperation_, getWorkingCopyContext_, isWorkingCopy_, needsReconciling_, newWorkingCopyContext_, openParent_, reconcile_, releaseWorkingCopy_, toStringName_, validateExistence_, workingCopyModeChanged_checkInRange, getSourceElementAt_, getSourceElementAt_, getSourceElementInfo_canEqual_, exists_, findBody_, getChildrenFromBody_, getElementManager_, getModel_, isOpenable_, newDoesNotExistException_, open_, peekAtBody_, remove_, removing_, toString_, toStringAncestors_, toStringBody_, toStringChildren_close_, getBody_, getBody_, getChildren_getModelManager_getFileStore_public WorkspaceSourceFile(IElement parent, org.eclipse.core.resources.IFile file)
IFile.parent - the parent of the element,
or null if the element has no parentfile - the underlying IFile (not null)public final org.eclipse.core.resources.IResource getResource_()
IFile. This is a handle-only method.IFile (never null)public final org.eclipse.core.resources.IFile getFile_()
IFile. This is a handle-only method.IFile (never null)public final java.lang.Object getFileObject_()
IFile. This is a handle-only method.IFile (never null)ISourceFileImpl.getFile_(),
ISourceFileImpl.getFileStore_()Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0