Package org.palladiosimulator.protocom
Class PCMEclipseResourceFileSystemAccess2
java.lang.Object
org.eclipse.xtext.generator.AbstractFileSystemAccess
org.eclipse.xtext.generator.AbstractFileSystemAccess2
org.palladiosimulator.protocom.PCMEclipseResourceFileSystemAccess2
- All Implemented Interfaces:
org.eclipse.xtext.generator.IFileSystemAccess
,org.eclipse.xtext.generator.IFileSystemAccess2
,org.eclipse.xtext.generator.IFileSystemAccessExtension
,org.eclipse.xtext.generator.IFileSystemAccessExtension2
,org.eclipse.xtext.generator.IFileSystemAccessExtension3
public class PCMEclipseResourceFileSystemAccess2
extends org.eclipse.xtext.generator.AbstractFileSystemAccess2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Fields inherited from interface org.eclipse.xtext.generator.IFileSystemAccess
DEFAULT_OUTPUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createContainer
(IContainer container) protected void
createFolder
(IFolder folder) Deprecated.void
deleteFile
(String fileName, String outputName) void
deleteFile
(IFile file, String outputName, IProgressMonitor monitor) void
deleteFile
(IFile file, IProgressMonitor monitor) protected void
ensureExists
(IContainer container) protected boolean
ensureOutputConfigurationDirectoryExists
(org.eclipse.xtext.generator.OutputConfiguration outputConfig) protected void
ensureParentExists
(IFile file) void
flushSourceTraces
(String generatorName) Can be used to announce that a builder participant is done with this file system access and all potentially recorded trace information should be persisted.void
generateFile
(String fileName, String outputName, InputStream content) void
generateFile
(String fileName, String outputName, CharSequence contents) protected IContainer
getContainer
(org.eclipse.xtext.generator.OutputConfiguration outputConfig) protected String
getEncoding
(IFile file) protected IFile
protected IFile
getFile
(String fileName, String outputName, IProgressMonitor progressMonitor) protected IFolder
getFolder
(org.eclipse.xtext.generator.OutputConfiguration outputConfig) Deprecated.usegetContainer(OutputConfiguration)
insteadprotected org.eclipse.xtext.util.StringInputStream
getInputStream
(String contentsAsString, String encoding) protected IProgressMonitor
protected IProject
protected IProject
getProjectContext
(Resource resource) protected IFile
getSmapFile
(IFile javaSourceFile) Deprecated.We cannot use the storage to URI mapper here, as it only works for Xtext based languagesgetURI
(String path, String outputName, IProgressMonitor progressMonitor) getURI
(String path, IProgressMonitor progressMonitor) protected boolean
hasContentsChanged
(IFile file, InputStream newContent) protected boolean
hasContentsChanged
(IFile file, org.eclipse.xtext.util.StringInputStream newContent) readBinaryFile
(String fileName, String outputCfgName) readBinaryFile
(String fileName, String outputCfgName, IProgressMonitor progressMonitor) readBinaryFile
(String fileName, IProgressMonitor progressMonitor) readTextFile
(String fileName, String outputCfgName) readTextFile
(String fileName, String outputCfgName, IProgressMonitor progressMonitor) readTextFile
(String fileName, IProgressMonitor progressMonitor) protected void
void
setContext
(Object context) protected void
setDerived
(IFile file, boolean derived) void
setMonitor
(IProgressMonitor monitor) void
void
setProject
(IProject project) Methods inherited from class org.eclipse.xtext.generator.AbstractFileSystemAccess2
generateFile, isFile, isFile, readBinaryFile, readTextFile
Methods inherited from class org.eclipse.xtext.generator.AbstractFileSystemAccess
deleteFile, generateFile, getCurrentSource, getOutputConfig, getOutputConfigurations, getPathes, getURI, postProcess, postProcess, setCurrentSource, setOutputConfigurations, setOutputPath, setOutputPath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.xtext.generator.IFileSystemAccess
deleteFile, generateFile
Methods inherited from interface org.eclipse.xtext.generator.IFileSystemAccessExtension2
getURI
-
Constructor Details
-
PCMEclipseResourceFileSystemAccess2
public PCMEclipseResourceFileSystemAccess2()
-
-
Method Details
-
getSourceTraces
- Since:
- 2.4
-
resetSourceTraces
protected void resetSourceTraces()- Since:
- 2.4
-
getCallBack
- Since:
- 2.3
-
setProject
-
setContext
- Overrides:
setContext
in classorg.eclipse.xtext.generator.AbstractFileSystemAccess2
-
getProjectContext
- Since:
- 2.8
-
getProject
- Since:
- 2.6
-
setMonitor
-
setPostProcessor
-
getMonitor
-
ensureOutputConfigurationDirectoryExists
protected boolean ensureOutputConfigurationDirectoryExists(org.eclipse.xtext.generator.OutputConfiguration outputConfig) - Since:
- 2.4
-
generateFile
-
generateFile
- Since:
- 2.4
-
getEncoding
- Throws:
CoreException
- Since:
- 2.3
-
setDerived
- Throws:
CoreException
- Since:
- 2.3
-
createFolder
Deprecated.usecreateContainer(IContainer)
instead- Throws:
CoreException
-
createContainer
- Throws:
CoreException
- Since:
- 2.4
-
ensureParentExists
- Throws:
CoreException
-
ensureExists
- Throws:
CoreException
-
getInputStream
-
getFolder
@Deprecated protected IFolder getFolder(org.eclipse.xtext.generator.OutputConfiguration outputConfig) Deprecated.usegetContainer(OutputConfiguration)
instead -
getContainer
- Since:
- 2.4
-
hasContentsChanged
protected boolean hasContentsChanged(IFile file, org.eclipse.xtext.util.StringInputStream newContent) -
hasContentsChanged
- Since:
- 2.4
-
getSmapFile
Deprecated.- Since:
- 2.3
-
flushSourceTraces
Can be used to announce that a builder participant is done with this file system access and all potentially recorded trace information should be persisted.- Parameters:
generatorName
- the name of the generator.- Throws:
CoreException
- Since:
- 2.3
-
deleteFile
- Specified by:
deleteFile
in interfaceorg.eclipse.xtext.generator.IFileSystemAccessExtension
- Overrides:
deleteFile
in classorg.eclipse.xtext.generator.AbstractFileSystemAccess
-
deleteFile
- Throws:
CoreException
- Since:
- 2.3
-
deleteFile
public void deleteFile(IFile file, String outputName, IProgressMonitor monitor) throws CoreException - Throws:
CoreException
- Since:
- 2.5
-
getFile
-
getFile
- Since:
- 2.7
-
getURI
- Since:
- 2.7
-
getURI
We cannot use the storage to URI mapper here, as it only works for Xtext based languages- Since:
- 2.3
-
getURI
- Since:
- 2.7
-
readBinaryFile
- Since:
- 2.7
-
readBinaryFile
public InputStream readBinaryFile(String fileName, String outputCfgName) throws org.eclipse.xtext.util.RuntimeIOException - Throws:
org.eclipse.xtext.util.RuntimeIOException
- Since:
- 2.4
-
readBinaryFile
public InputStream readBinaryFile(String fileName, String outputCfgName, IProgressMonitor progressMonitor) throws org.eclipse.xtext.util.RuntimeIOException - Throws:
org.eclipse.xtext.util.RuntimeIOException
- Since:
- 2.7
-
readTextFile
- Since:
- 2.7
-
readTextFile
public CharSequence readTextFile(String fileName, String outputCfgName) throws org.eclipse.xtext.util.RuntimeIOException - Throws:
org.eclipse.xtext.util.RuntimeIOException
- Since:
- 2.4
-
readTextFile
public CharSequence readTextFile(String fileName, String outputCfgName, IProgressMonitor progressMonitor) throws org.eclipse.xtext.util.RuntimeIOException - Throws:
org.eclipse.xtext.util.RuntimeIOException
- Since:
- 2.7
-
createContainer(IContainer)
instead