}
private void addProcessors(){
try {
IProject proj = project.getProject();
SpoonProject spoonProject = SpoonProject.getSpoonNature(proj);
SpoonPropertyManager propMgr = spoonProject.getPropertyManager();
spoonToJbprocesProjMap.put(spoonProject,this);
PProcessor avalProc = propMgr.findProcessor("spoon.aval.processing.AValProcessor");
PProcessor jbprocessor = propMgr.findProcessor("jbprocessor.BpelProcessor");
if (jbprocessor == null || avalProc == null) {
Bundle bundle = Platform.getBundle("jbprocess.tools");
bundle.loadClass("jbprocessor.BpelProcessor");
//URL url = FileLocator.toFileURL(bundle.getEntry("/spoon.xml"));
//IPath p2 = new Path(url.getFile());
//IFile spoonFile = project.getProject().getFile("spoon.xml");
//spoonFile.createLink(p2, IResource.NONE, null);
//container = new JbprocessSpoonletContainer(spoonFile);
container = new LocalJar(project.getProject().getFile("jbprocess.jar"));
propMgr.addContainer(container);
avalProc = propMgr.findProcessor("spoon.aval.processing.AValProcessor");
if (avalProc != null)
avalProc.setActive(true);
jbprocessor = propMgr.findProcessor("jbprocessor.BpelProcessor");
if (jbprocessor != null){
jbprocessor.setActive(true);
jbprocessor.addProperty("projectName", project.getElementName());
jbprocessor.addProperty("outputDirectory", project.getOutputLocation().toString());
}
PProcessor jbtypeproc = propMgr.findProcessor("jbprocessor.JbprocessTypeValidator");
if (jbtypeproc != null)
jbtypeproc.setActive(true);
}
} catch (Exception e){