Class VirtualFile
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- com._1c.g5.v8.dt.core.virtualfile.AbstractVirtualFile
-
- com._1c.g5.v8.dt.core.virtualfile.VirtualFile
-
- 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:
VirtualTextFile
public class VirtualFile extends AbstractVirtualFile
Virtual file.This implementation is a wrapper around
AbstractVirtualFile
. Clients should provideIVirtualFileContentManager
for writing and reading content.
-
-
Field Summary
Fields Modifier and Type Field Description protected IVirtualFileContentManager
contentManager
-
Fields inherited from class com._1c.g5.v8.dt.core.virtualfile.AbstractVirtualFile
file, 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 VirtualFile(org.eclipse.core.resources.IFile file, IVirtualFileContentManager contentManager)
VirtualFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, IVirtualFileContentManager contentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getContents(boolean force)
int
getEncoding()
void
setContents(InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)
-
Methods inherited from class com._1c.g5.v8.dt.core.virtualfile.AbstractVirtualFile
accept, accept, accept, accept, accept, appendContents, appendContents, clearHistory, contains, copy, copy, copy, copy, create, create, createLink, createLink, createMarker, createProxy, delete, delete, delete, deleteMarkers, equals, exists, findMarker, findMarkers, findMaxProblemSeverity, getAdapter, getCharset, getCharset, getCharsetFor, getContentDescription, getContents, getFileExtension, getFullPath, getHistory, getLocalTimeStamp, getLocation, getLocationURI, getMarker, getModificationStamp, getName, getParent, getPathVariableManager, getPersistentProperties, getPersistentProperty, getProject, getProjectRelativePath, getRawLocation, getRawLocationURI, getResourceAttributes, getSessionProperties, getSessionProperty, getType, getWorkspace, hashCode, isAccessible, isConflicting, isDerived, isDerived, isHidden, isHidden, isLinked, isLinked, isLocal, isPhantom, isReadOnly, isSynchronized, isTeamPrivateMember, isTeamPrivateMember, isVirtual, move, move, move, move, move, refreshLocal, revertModificationStamp, setCharset, setCharset, setContents, setContents, setContents, setDerived, setDerived, setHidden, setLocal, setLocalTimeStamp, setPersistentProperty, setReadOnly, setResourceAttributes, setSessionProperty, setTeamPrivateMember, touch
-
-
-
-
Field Detail
-
contentManager
protected IVirtualFileContentManager contentManager
-
-
Constructor Detail
-
VirtualFile
public VirtualFile(org.eclipse.core.resources.IFile file, IVirtualFileContentManager contentManager)
-
VirtualFile
public VirtualFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, IVirtualFileContentManager contentManager)
-
-
Method Detail
-
getContents
public InputStream getContents(boolean force) throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
-
getEncoding
public int getEncoding() throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
-
setContents
public void setContents(InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
-
-