Package com.e1c.g5.v8.dt.library
Interface ILibraryProjectManager
-
public interface ILibraryProjectManagerA manager of projects which were created or updated based on libraries.Clients may:
- Export a project as a library to a zip file.
- Read a library metainformation from the library file.
- Create a project based on a library.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectProjectToLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor)Connects the project to the library.org.eclipse.core.resources.IProjectcreateProject(String projectName, LibraryDescriptor libraryDescriptor, Version version, org.eclipse.core.runtime.IProgressMonitor monitor)Creates a configuration project based on the given library.org.eclipse.core.resources.IProjectcreateProject(String projectName, Path projectPath, LibraryDescriptor libraryDescriptor, Version version, org.eclipse.core.runtime.IProgressMonitor monitor)Creates a configuration project based on the given library.org.eclipse.core.resources.IProjectcreateProject(String projectName, Path libraryPath, Version version, org.eclipse.core.runtime.IProgressMonitor monitor)Creates a configuration project based on the given library.org.eclipse.core.resources.IProjectcreateProject(String projectName, Path projectPath, Path libraryPath, Version version, org.eclipse.core.runtime.IProgressMonitor monitor)Creates a configuration project based on the given library.voidexportLibrary(org.eclipse.core.resources.IProject project, Path destinationPath, org.eclipse.core.runtime.IProgressMonitor monitor)Exports the given project as a library to a file.LibraryDescriptorreadLibraryMetainformation(Path libraryPath)Reads the library metainformation from the library file.
-
-
-
Method Detail
-
exportLibrary
void exportLibrary(org.eclipse.core.resources.IProject project, Path destinationPath, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOExceptionExports the given project as a library to a file. Now only the configuration project is supported, the configuration version and vendor must be specified.- Parameters:
project- the project to export as a library, cannot benulldestinationPath- the destination path to export, cannot benullmonitor- the monitor to indicate the progress, may benull- Throws:
IOException- if an I/O error has occurred
-
readLibraryMetainformation
LibraryDescriptor readLibraryMetainformation(Path libraryPath) throws IOException, InvalidLibraryDescriptorException
Reads the library metainformation from the library file.- Parameters:
libraryPath- the library file path, cannot benull- Returns:
- the library descriptor, never
null - Throws:
IOException- if an I/O error has occurredInvalidLibraryDescriptorException- if failed to found library description attributes
-
createProject
org.eclipse.core.resources.IProject createProject(String projectName, Path libraryPath, Version version, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException, InvalidLibraryDescriptorException, org.eclipse.core.runtime.CoreException
Creates a configuration project based on the given library.- Parameters:
projectName- the project name, cannot benulllibraryPath- the library file path, cannot benullversion- the project runtime version, cannot benullmonitor- the monitor to indicate the progress, may benull- Returns:
- the created configuration project, never
null - Throws:
IOException- if an I/O error has occurredInvalidLibraryDescriptorException- if failed to found library description attributesorg.eclipse.core.runtime.CoreException- if failed to create a project
-
createProject
org.eclipse.core.resources.IProject createProject(String projectName, Path projectPath, Path libraryPath, Version version, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException, InvalidLibraryDescriptorException, org.eclipse.core.runtime.CoreException
Creates a configuration project based on the given library.- Parameters:
projectName- the project name, cannot benullprojectPath- the project path, may benulllibraryPath- the library file path, cannot benullversion- the project runtime version, cannot benullmonitor- the monitor to indicate the progress, may benull- Returns:
- the created configuration project, never
null - Throws:
IOException- if an I/O error has occurredInvalidLibraryDescriptorException- if failed to found library description attributesorg.eclipse.core.runtime.CoreException- if failed to create a project
-
createProject
org.eclipse.core.resources.IProject createProject(String projectName, LibraryDescriptor libraryDescriptor, Version version, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Creates a configuration project based on the given library.- Parameters:
projectName- the project name, cannot benulllibraryDescriptor- the library descriptor to create the project based on, cannot benullversion- the project runtime version, cannot benullmonitor- the monitor to indicate the progress, may benull- Returns:
- the created configuration project, never
null - Throws:
org.eclipse.core.runtime.CoreException- if failed to create a project
-
createProject
org.eclipse.core.resources.IProject createProject(String projectName, Path projectPath, LibraryDescriptor libraryDescriptor, Version version, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Creates a configuration project based on the given library.- Parameters:
projectName- the project name, cannot benullprojectPath- the project path, may benulllibraryDescriptor- the library descriptor to create the project based on, cannot benullversion- the project runtime version, cannot benullmonitor- the monitor to indicate the progress, may benull- Returns:
- the created configuration project, never
null - Throws:
org.eclipse.core.runtime.CoreException- if failed to create a project
-
connectProjectToLibrary
void connectProjectToLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor) throws IOException, org.eclipse.core.runtime.CoreException, ProjectManifestException
Connects the project to the library.- Parameters:
dtProject- the DT workspace project to connect the library for, cannot benulllibraryDescriptor- the library descriptor to connect to, cannot benull- Throws:
IOExceptionorg.eclipse.core.runtime.CoreExceptionProjectManifestException
-
-