Package com._1c.g5.v8.dt.core.platform
Interface IExternalObjectProjectManager
-
- All Superinterfaces:
IDependentProjectManager
,IManagedService
,IProjectSpecificManager
public interface IExternalObjectProjectManager extends IManagedService, IDependentProjectManager
Manager of V8 external object projects.- See Also:
IV8ProjectManager
,IExternalObjectProject
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
Service name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.core.resources.IProject
create(String projectName, Version version, MdObject externalObject, org.eclipse.core.resources.IProject parent, org.eclipse.core.runtime.IProgressMonitor monitor)
Creates V8 external object project in workspace: Creates actual workspace project with the given name.org.eclipse.core.resources.IProject
create(String projectName, Path projectPath, Version version, MdObject externalObject, org.eclipse.core.resources.IProject parent, org.eclipse.core.runtime.IProgressMonitor monitor)
Creates V8 external object project: Creates actual workspace project with the given name in given path.void
setLanguages(IExternalObjectProject project, Collection<Language> languages, org.eclipse.core.runtime.IProgressMonitor monitor)
Sets languages to a given project.void
setScriptVariant(IExternalObjectProject project, ScriptVariant scriptVariant, org.eclipse.core.runtime.IProgressMonitor monitor)
Sets script variant to a given project.-
Methods inherited from interface com._1c.g5.v8.dt.core.platform.IDependentProjectManager
setParent
-
Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
Service name. May be used in service recovery or service lifecycle orchestration.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
org.eclipse.core.resources.IProject create(String projectName, Version version, MdObject externalObject, org.eclipse.core.resources.IProject parent, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Creates V8 external object project in workspace:- Creates actual workspace project with the given name.
- Creates project manifest with the given
Version
content. - Creates underlying BM model.
- Attaches the given external object (if not
null
) to the created project. - Sets provided parent
IConfigurationProject
as parent project, if notnull
Clients may later access project handle with
IV8ProjectManager
and created project handle will haveIExternalObjectProject
type.- Parameters:
projectName
- the name to create project with, cannot benull
version
- the 1C:Enterprice Runtime version, cannot benull
externalObject
- the external object to attach to the project, ornull
then no external object will be attached to the project during method executionparent
- the parent V8 configuration project ornull
if project is independentmonitor
- the progress monitor to report progress to ornull
if progress report is not needed- Returns:
- created external object project, never
null
- Throws:
org.eclipse.core.runtime.CoreException
- if an exception occurs while creating; reasons include:- project with provided name already exists
- project creation fail
- underlying BM model creation fail
-
create
org.eclipse.core.resources.IProject create(String projectName, Path projectPath, Version version, MdObject externalObject, org.eclipse.core.resources.IProject parent, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Creates V8 external object project:- Creates actual workspace project with the given name in given path.
- Creates project manifest with the given
Version
content. - Creates underlying BM model.
- Attaches the given external object (if not
null
) to the created project. - Sets provided parent
IConfigurationProject
as parent project, if notnull
Clients may later access project handle with
IV8ProjectManager
and created project handle will haveIExternalObjectProject
type.- Parameters:
projectName
- the name to create project with, cannot benull
projectPath
- the path to create project, cannot benull
version
- the 1C:Enterprice Runtime version, cannot benull
externalObject
- the external object to attach to the project, ornull
then no external object will be attached to the project during method executionparent
- the parent V8 configuration project ornull
if project is independentmonitor
- the progress monitor to report progress to ornull
if progress report is not needed- Returns:
- created external object project, never
null
- Throws:
org.eclipse.core.runtime.CoreException
- if an exception occurs while creating; reasons include:- project with provided name already exists
- project creation fail
- underlying BM model creation fail
-
setScriptVariant
void setScriptVariant(IExternalObjectProject project, ScriptVariant scriptVariant, org.eclipse.core.runtime.IProgressMonitor monitor)
Sets script variant to a given project.- Parameters:
project
- the external object project, notnull
scriptVariant
- the script variant, notnull
monitor
- the progress monitor, notnull
-
setLanguages
void setLanguages(IExternalObjectProject project, Collection<Language> languages, org.eclipse.core.runtime.IProgressMonitor monitor)
Sets languages to a given project.- Parameters:
project
- External object project to set languages to, notnull
usePurposes
- Languages to be setmonitor
- Progress monitor, notnull
-
-