Package com.e1c.g5.v8.dt.library
Interface ILibraryProjectManager
-
public interface ILibraryProjectManager
A 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 void
connectProjectToLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor)
Connects the project to the library.org.eclipse.core.resources.IProject
createProject(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.IProject
createProject(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.IProject
createProject(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.IProject
createProject(String projectName, Path projectPath, Path libraryPath, Version version, org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a configuration project based on the given library.void
exportLibrary(org.eclipse.core.resources.IProject project, Path destinationPath, org.eclipse.core.runtime.IProgressMonitor monitor)
Exports the given project as a library to a file.LibraryDescriptor
readLibraryMetainformation(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 IOException
Exports 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 benull
destinationPath
- the destination path to export, cannot benull
monitor
- 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 benull
libraryPath
- the library file path, cannot benull
version
- the project runtime version, cannot benull
monitor
- 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 benull
projectPath
- the project path, may benull
libraryPath
- the library file path, cannot benull
version
- the project runtime version, cannot benull
monitor
- 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 benull
libraryDescriptor
- the library descriptor to create the project based on, cannot benull
version
- the project runtime version, cannot benull
monitor
- 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 benull
projectPath
- the project path, may benull
libraryDescriptor
- the library descriptor to create the project based on, cannot benull
version
- the project runtime version, cannot benull
monitor
- 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 benull
libraryDescriptor
- the library descriptor to connect to, cannot benull
- Throws:
IOException
org.eclipse.core.runtime.CoreException
ProjectManifestException
-
-