Package com._1c.g5.v8.dt.ide
Class AbstractHierarchicalFileSystemSupport
java.lang.Object
com._1c.g5.v8.dt.ide.AbstractHierarchicalFileSystemSupport
- All Implemented Interfaces:
IProjectFileSystemSupport
- Direct Known Subclasses:
ConfigurationFileSystemSupport
public abstract class AbstractHierarchicalFileSystemSupport
extends Object
implements IProjectFileSystemSupport
Basic
IProjectFileSystemSupport implementation which uses 'src' folder as base folder for containing source files.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.core.resources.IProjectstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHierarchicalFileSystemSupport(org.eclipse.core.resources.IProject project) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.core.runtime.IPathSpecifies base source folder.org.eclipse.core.resources.IFilegetFile(org.eclipse.emf.ecore.EObject eObject) Returns file for given model object.org.eclipse.core.resources.IFilegetFile(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature) Returns file for given for given external property feature and context.protected abstract org.eclipse.core.runtime.IPathgetFilePath(org.eclipse.emf.ecore.EObject eObject) org.eclipse.core.runtime.IPathgetPath(org.eclipse.emf.ecore.EObject eObject) Returns path to file in project for given object.abstract 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.
-
Field Details
-
SOURCE_FOLDER
- See Also:
-
project
protected org.eclipse.core.resources.IProject project
-
-
Constructor Details
-
AbstractHierarchicalFileSystemSupport
public AbstractHierarchicalFileSystemSupport(org.eclipse.core.resources.IProject project) Constructor- Parameters:
project- the context project, notnull
-
-
Method Details
-
getFile
public org.eclipse.core.resources.IFile getFile(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IProjectFileSystemSupportReturns file for given model object.- Specified by:
getFilein interfaceIProjectFileSystemSupport- Parameters:
eObject- the model object, notnull- Returns:
- file for given model object or null if model object is not supported
-
getFile
public org.eclipse.core.resources.IFile getFile(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature) Description copied from interface:IProjectFileSystemSupportReturns file for given for given external property feature and context.- Specified by:
getFilein interfaceIProjectFileSystemSupport- Parameters:
context- the model object, notnullfeature- the feature refer to external property of given context, notnull- Returns:
- file in context project for given external property feature and context or
nullif model object is not supported
-
getPath
public org.eclipse.core.runtime.IPath getPath(org.eclipse.emf.ecore.EObject eObject) Description copied from interface:IProjectFileSystemSupportReturns path to file in project for given object.- Specified by:
getPathin interfaceIProjectFileSystemSupport- Parameters:
eObject- the model object, notnull- Returns:
- path to file in project for given object or
nullif model object is not supported
-
getPath
public abstract 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- 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
-
getBaseSourceFolder
protected org.eclipse.core.runtime.IPath getBaseSourceFolder()Specifies base source folder.- Returns:
- base source folder (not
null)
-
getFilePath
protected abstract org.eclipse.core.runtime.IPath getFilePath(org.eclipse.emf.ecore.EObject eObject) - Parameters:
eObject- the object to get path for (notnull)- Returns:
- path starting from
SOURCE_FOLDERfor given eObject where its content can be stored or null
-