01: package org.drools.eclipse.util;
02:
03: import org.eclipse.core.runtime.CoreException;
04: import org.eclipse.core.runtime.IPath;
05: import org.eclipse.jdt.core.ClasspathContainerInitializer;
06: import org.eclipse.jdt.core.IClasspathContainer;
07: import org.eclipse.jdt.core.IJavaProject;
08: import org.eclipse.jdt.core.JavaCore;
09:
10: public class DroolsClasspathContainerInitializer extends
11: ClasspathContainerInitializer {
12:
13: public void initialize(IPath ipath, IJavaProject project)
14: throws CoreException {
15: DroolsClasspathContainer container = new DroolsClasspathContainer(
16: project, ipath);
17: JavaCore.setClasspathContainer(ipath,
18: new IJavaProject[] { project },
19: new IClasspathContainer[] { container }, null);
20: }
21: }
|