public class IlrRuleProjectUtil
extends java.lang.Object
| Constructor and Description |
|---|
IlrRuleProjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSystemXomPathEntry(IlrRuleProject ruleProject,
org.eclipse.core.runtime.IPath path)
Adds a system xom path entry to this rule project.
|
static void |
createDecisionServiceProject(org.eclipse.core.resources.IProject project,
boolean mainRuleProject,
org.eclipse.core.runtime.IProgressMonitor monitor)
Create a new decision service project.
|
static IlrRuleProject |
createDefaultRuleProject(org.eclipse.core.resources.IProject iProject,
boolean createFolders,
org.eclipse.core.runtime.IProgressMonitor monitor) |
static IlrRuleProject |
createDefaultRuleProject(org.eclipse.core.resources.IProject iProject,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a well-formed rule project in the workspace from a project
handle.
|
public static IlrRuleProject createDefaultRuleProject(org.eclipse.core.resources.IProject iProject, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
More precisely:
"rules", "boms",
"queries", "templates" and "resources"
"output"
"ANY"
The resulting
IlrRuleProject exists in the rule model and in the workspace: this
method performs a workspace operation. Usually this method will be
called from a newly created IProject handle, for example:
IProject newProject = ResourcesPlugin.getWorkspace().getRoot().getProject("myNewProject");
IlrRuleProject ruleProject = IlrRuleProjectUtil.createDefaultRuleProject(newProject, null);
The resulting rule project is already saved and you do not need to call
IlrResourceManager.saveElement(IlrResourceElement).
org.eclipse.core.runtime.CoreException - If the creation failed or if this project already existed.iProject - A handle to a project in the workspace.IlrRuleProject, or null if the creation failed.public static IlrRuleProject createDefaultRuleProject(org.eclipse.core.resources.IProject iProject, boolean createFolders, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static void addSystemXomPathEntry(IlrRuleProject ruleProject, org.eclipse.core.runtime.IPath path) throws IlrModelException, org.eclipse.core.runtime.CoreException
The given path can be:
The path can be an absolute path on the file system or a full path inside the workspace.
IlrModelException - If it could not create the xom path entry.org.eclipse.core.runtime.CoreExceptionpublic static void createDecisionServiceProject(org.eclipse.core.resources.IProject project,
boolean mainRuleProject,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionproject - handle to the IProject to be initializedmainRuleProject - should the created project be a main decision servicemonitor - © Copyright IBM Corp. 1987, 2017