Package com._1c.g5.v8.dt.ide
Class ConfigurationFileSystemSupport
java.lang.Object
com._1c.g5.v8.dt.ide.AbstractHierarchicalFileSystemSupport
com._1c.g5.v8.dt.ide.ConfigurationFileSystemSupport
- All Implemented Interfaces:
IProjectFileSystemSupport
public class ConfigurationFileSystemSupport
extends AbstractHierarchicalFileSystemSupport
implements IProjectFileSystemSupport
IProjectFileSystemSupport for Configuration project.
This implementation makes hierarchical project structure with
all source files containing in 'src' folder-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.ide.AbstractHierarchicalFileSystemSupport
project, SOURCE_FOLDER -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationFileSystemSupport(IDtProject dtProject, org.eclipse.core.resources.IProject project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry externalPropertyManagerRegistry) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected IExternalPropertyManagerReturns external property managergetFileName(org.eclipse.emf.ecore.EObject eObject) Returns file name for giveneObjectprotected org.eclipse.core.runtime.IPathgetFilePath(org.eclipse.emf.ecore.EObject eObject) org.eclipse.core.runtime.IPathgetPath(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature) Returns path to file in project for given external property feature and context.Methods inherited from class com._1c.g5.v8.dt.ide.AbstractHierarchicalFileSystemSupport
getBaseSourceFolder, getFile, getFile, getPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.core.filesystem.IProjectFileSystemSupport
getFile, getFile, getPath
-
Constructor Details
-
ConfigurationFileSystemSupport
public ConfigurationFileSystemSupport(IDtProject dtProject, org.eclipse.core.resources.IProject project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry externalPropertyManagerRegistry) Constructor- Parameters:
dtProject-project- the context project (notnull)bmModelManager- the BM model manager is used to provide context for external property manager registry (notnull)externalPropertyManagerRegistry- the external property manager registry (notnull)
-
-
Method Details
-
getPath
public org.eclipse.core.runtime.IPath getPath(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature) Description copied from interface:IProjectFileSystemSupportReturns path to file in project for given external property feature and context.- Specified by:
getPathin interfaceIProjectFileSystemSupport- Specified by:
getPathin classAbstractHierarchicalFileSystemSupport- Parameters:
context- the model object context, notnullfeature- the feature refer to external property of given context, notnull- Returns:
- path to file in project for given external property feature and context or
nullif model object is not supported
-
getFileName
Returns file name for giveneObject- Parameters:
eObject- the object to get file name for (notnull)- Returns:
- file name for given
eObject
-
getFilePath
protected org.eclipse.core.runtime.IPath getFilePath(org.eclipse.emf.ecore.EObject eObject) - Specified by:
getFilePathin classAbstractHierarchicalFileSystemSupport- Parameters:
eObject- the object to get path for (notnull)- Returns:
- path starting from
AbstractHierarchicalFileSystemSupport.SOURCE_FOLDERfor given eObject where its content can be stored or null
-
getExternalPropertyManager
Returns external property manager- Returns:
- the actual
IExternalPropertyManagerinstance
-