Package com._1c.g5.v8.dt.xdto.resource
Interface ICurrentConfigurationPackageProvider
- All Known Implementing Classes:
CurrentConfigurationPackageProvider
public interface ICurrentConfigurationPackageProvider
Interface of provider for working with
Package with uri "http://v8.1c.ru/8.1/data/enterprise/current-config" and its elements.
Contains methods for creating Package and filling it and has possibility of creating file with content of the Package.
Also has special methods for creating IScope by this Package-
Method Summary
Modifier and TypeMethodDescriptionvoidClears cachingIScope.voiddeleteCurrentConfigPackage(String projectName) Deletes file with content ofPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"getCurrentConfigPackage(org.eclipse.core.resources.IProject project) GetsPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"org.eclipse.xtext.scoping.IScopegetScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference) Gets actualIScopeof the element fromPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"voidLoads resource forPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"voidSaves resource forPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"
-
Method Details
-
clearCachedScope
void clearCachedScope()Clears cachingIScope. This method should be called each time when content of the configuration object was changed -
getScope
org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference) Gets actualIScopeof the element fromPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
context- context resource for creatingIScope, can't benullreference-EReferencefor detect type of the elements inIScope, can't benull- Returns:
- actual
IScopeof the element fromPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config", nevernull
-
getCurrentConfigPackage
GetsPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config" -
loadCurrentConfigResource
Loads resource forPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
resource- loadingCurrentConfigXdtoResource, can't benull
-
saveCurrentConfigResource
Saves resource forPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
resource- savingCurrentConfigXdtoResource, can't benull
-
deleteCurrentConfigPackage
Deletes file with content ofPackagewith uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
projectName- name of the context project for deleting file, can't benull
-