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
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Field Summary
Fields inherited from interface org.eclipse.xtext.generator.IFileSystemAccess
DEFAULT_OUTPUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateContainer(IContainer container) protected voidcreateFolder(IFolder folder) Deprecated.voiddeleteFile(String fileName, String outputName) voiddeleteFile(IFile file, String outputName, IProgressMonitor monitor) voiddeleteFile(IFile file, IProgressMonitor monitor) protected voidensureExists(IContainer container) protected booleanensureOutputConfigurationDirectoryExists(org.eclipse.xtext.generator.OutputConfiguration outputConfig) protected voidensureParentExists(IFile file) voidflushSourceTraces(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.voidgenerateFile(String fileName, String outputName, InputStream content) voidgenerateFile(String fileName, String outputName, CharSequence contents) protected IContainergetContainer(org.eclipse.xtext.generator.OutputConfiguration outputConfig) protected StringgetEncoding(IFile file) protected IFileprotected IFilegetFile(String fileName, String outputName, IProgressMonitor progressMonitor) protected IFoldergetFolder(org.eclipse.xtext.generator.OutputConfiguration outputConfig) Deprecated.usegetContainer(OutputConfiguration)insteadprotected org.eclipse.xtext.util.StringInputStreamgetInputStream(String contentsAsString, String encoding) protected IProgressMonitorprotected IProjectprotected IProjectgetProjectContext(Resource resource) protected IFilegetSmapFile(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 booleanhasContentsChanged(IFile file, InputStream newContent) protected booleanhasContentsChanged(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 voidvoidsetContext(Object context) protected voidsetDerived(IFile file, boolean derived) voidsetMonitor(IProgressMonitor monitor) voidvoidsetProject(IProject project) Methods inherited from class org.eclipse.xtext.generator.AbstractFileSystemAccess2
generateFile, isFile, isFile, readBinaryFile, readTextFileMethods inherited from class org.eclipse.xtext.generator.AbstractFileSystemAccess
deleteFile, generateFile, getCurrentSource, getOutputConfig, getOutputConfigurations, getPathes, getURI, postProcess, postProcess, setCurrentSource, setOutputConfigurations, setOutputPath, setOutputPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.xtext.generator.IFileSystemAccess
deleteFile, generateFileMethods 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:
setContextin 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:
deleteFilein interfaceorg.eclipse.xtext.generator.IFileSystemAccessExtension- Overrides:
deleteFilein 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