And this is where I created the new Agent and you can see the events after
creating the agent.

rotected void performFinish(IProgressMonitor monitor) {
       listCreate=0;
       URI agentURI = selection.getAgent().eResource().getURI();
       URI processURI = selection.getProcessProxy().eResource().getURI();
       URI nodeURI = selection.getProcessProxy
().getNode().eResource().getURI();
       URI monitorURI = selection.getProcessProxy
().getNode().getMonitor().eResource().getURI();
       URI projectURI=URI.createPlatformResourceURI(monitorURI.toString
().split("/")[2]);
       try {
           TRCAgent targetAgent = TRCAgentUtil.newAgent(projectURI,
monitorURI, nodeURI, processURI, null, projectName.getText(),
projectName.getText(), null, projectName.getText(), projectName.getText(),
null);

           ITPTPMappingStrategy modelTransformer = null;
           if (liftStrategy1.getSelection())
               modelTransformer = TPTPMappingStrategy1.getInstance();
           else if (liftStrategy2.getSelection())
               modelTransformer = TPTPMappingStrategy2.getInstance();

           modelTransformer.translateModel(selection.getAgent(),
targetAgent);

           TRCAgentUtil.saveTRCAgent(targetAgent);
           TRCAgentUtil.openProfilingView();

       } catch (IOException e1) {
           // TODO Auto-generated catch block
           e1.printStackTrace();
       }
   }
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to