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
Constructors Constructor Description ConfigurationFileSystemSupport(IDtProject dtProject, org.eclipse.core.resources.IProject project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry externalPropertyManagerRegistry)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IExternalPropertyManager
getExternalPropertyManager()
Returns external property managerString
getFileName(org.eclipse.emf.ecore.EObject eObject)
Returns file name for giveneObject
protected org.eclipse.core.runtime.IPath
getFilePath(org.eclipse.emf.ecore.EObject eObject)
org.eclipse.core.runtime.IPath
getPath(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, getPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.core.filesystem.IProjectFileSystemSupport
getFile, getFile, getPath
-
-
-
-
Constructor Detail
-
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 Detail
-
getPath
public org.eclipse.core.runtime.IPath getPath(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature)
Description copied from interface:IProjectFileSystemSupport
Returns path to file in project for given external property feature and context.- Specified by:
getPath
in interfaceIProjectFileSystemSupport
- Specified by:
getPath
in classAbstractHierarchicalFileSystemSupport
- Parameters:
context
- the model object context, notnull
feature
- the feature refer to external property of given context, notnull
- Returns:
- path to file in project for given external property feature and context or
null
if model object is not supported
-
getFileName
public String getFileName(org.eclipse.emf.ecore.EObject eObject)
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:
getFilePath
in classAbstractHierarchicalFileSystemSupport
- Parameters:
eObject
- the object to get path for (notnull
)- Returns:
- path starting from
AbstractHierarchicalFileSystemSupport.SOURCE_FOLDER
for given eObject where its content can be stored or null
-
getExternalPropertyManager
protected IExternalPropertyManager getExternalPropertyManager()
Returns external property manager- Returns:
- the actual
IExternalPropertyManager
instance
-
-