Examples of PProcessor


Examples of fr.inria.spoon.property.PProcessor

      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){
      System.out.println(e.getMessage());
      e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.