public interface ILanguageManager
ILanguageManager
is in charge of managing
problem solver execution by providing for a given problem,
following features :
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_ATTRIBUTE
Extension attribute name for the manager implementation class.
|
static java.lang.String |
CREATE_PROJECT_TASK
Task name for the project creation.
|
static java.lang.String |
EXTENSION_ID
Identifier of the associated OSGi extension.
|
static java.lang.String |
LANGUAGE_ATTRIBUTE
Extension attribute name for the manager target language.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.resources.IProject |
getProject(Problem problem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves the project associated to the given problem if exist.
|
ISolverRunner |
getRunner(ProblemSolver solver,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves a valid
ISolverRunner instance that could
manage the given solver execution. |
org.eclipse.core.resources.IFile |
getSolver(Problem problem,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves the solver file associated to the given problem if exist.
|
static final java.lang.String EXTENSION_ID
static final java.lang.String LANGUAGE_ATTRIBUTE
static final java.lang.String CLASS_ATTRIBUTE
static final java.lang.String CREATE_PROJECT_TASK
org.eclipse.core.resources.IProject getProject(Problem problem, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
problem
- Problem to retrieve project from.monitor
- Monitor instance to use for project creation.org.eclipse.core.runtime.CoreException
- If any error occurs while creating the project.org.eclipse.core.resources.IFile getSolver(Problem problem, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
problem
- Problem to retrieve solver file from.monitor
- Monitor instance to use for solver file creation.org.eclipse.core.runtime.CoreException
- If any error occurs while creating the file.ISolverRunner getRunner(ProblemSolver solver, org.eclipse.core.runtime.IProgressMonitor monitor)
ISolverRunner
instance that could
manage the given solver execution.solver
- Solver instance to get valid runner from.monitor
- Monitor instance used for creating runner.