Package fr.inria.spoon.property

Examples of fr.inria.spoon.property.SpoonPropertyManager


  }
  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){
View Full Code Here

TOP

Related Classes of fr.inria.spoon.property.SpoonPropertyManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.