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
  • Constructor Details

    • ConfigurationFileSystemSupport

      public ConfigurationFileSystemSupport(IDtProject dtProject, org.eclipse.core.resources.IProject project, IBmModelManager bmModelManager, IExternalPropertyManagerRegistry externalPropertyManagerRegistry)
      Constructor
      Parameters:
      dtProject -
      project - the context project (not null)
      bmModelManager - the BM model manager is used to provide context for external property manager registry (not null)
      externalPropertyManagerRegistry - the external property manager registry (not null)
  • 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: IProjectFileSystemSupport
      Returns path to file in project for given external property feature and context.
      Specified by:
      getPath in interface IProjectFileSystemSupport
      Specified by:
      getPath in class AbstractHierarchicalFileSystemSupport
      Parameters:
      context - the model object context, not null
      feature - the feature refer to external property of given context, not null
      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 given eObject
      Parameters:
      eObject - the object to get file name for (not null)
      Returns:
      file name for given eObject
    • getFilePath

      protected org.eclipse.core.runtime.IPath getFilePath(org.eclipse.emf.ecore.EObject eObject)
      Specified by:
      getFilePath in class AbstractHierarchicalFileSystemSupport
      Parameters:
      eObject - the object to get path for (not null)
      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