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 TypeMethodDescriptionvoid
Clears cachingIScope
.void
deleteCurrentConfigPackage
(String projectName) Deletes file with content ofPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"getCurrentConfigPackage
(org.eclipse.core.resources.IProject project) GetsPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"org.eclipse.xtext.scoping.IScope
getScope
(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference) Gets actualIScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"void
Loads resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"void
Saves resource forPackage
with 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 actualIScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
context
- context resource for creatingIScope
, can't benull
reference
-EReference
for detect type of the elements inIScope
, can't benull
- Returns:
- actual
IScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config", nevernull
-
getCurrentConfigPackage
GetsPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config" -
loadCurrentConfigResource
Loads resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
resource
- loadingCurrentConfigXdtoResource
, can't benull
-
saveCurrentConfigResource
Saves resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
resource
- savingCurrentConfigXdtoResource
, can't benull
-
deleteCurrentConfigPackage
Deletes file with content ofPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
projectName
- name of the context project for deleting file, can't benull
-