Interface IExternalObjectProjectManager

    • 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 not null

        Clients may later access project handle with IV8ProjectManager and created project handle will have IExternalObjectProject type.

        Parameters:
        projectName - the name to create project with, cannot be null
        version - the 1C:Enterprice Runtime version, cannot be null
        externalObject - the external object to attach to the project, or null then no external object will be attached to the project during method execution
        parent - the parent V8 configuration project or null if project is independent
        monitor - the progress monitor to report progress to or null 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 not null

        Clients may later access project handle with IV8ProjectManager and created project handle will have IExternalObjectProject type.

        Parameters:
        projectName - the name to create project with, cannot be null
        projectPath - the path to create project, cannot be null
        version - the 1C:Enterprice Runtime version, cannot be null
        externalObject - the external object to attach to the project, or null then no external object will be attached to the project during method execution
        parent - the parent V8 configuration project or null if project is independent
        monitor - the progress monitor to report progress to or null 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, not null
        scriptVariant - the script variant, not null
        monitor - the progress monitor, not null
      • 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, not null
        usePurposes - Languages to be set
        monitor - Progress monitor, not null