/** {@inheritDoc} */
 public void run(IMarker marker) {
   List<ITestSuitePO> tsList = TestSuiteBP.getListOfTestSuites();
   for (ITestSuitePO ts : tsList) {
     if (ts.getAut().getName().equals(m_autName)) {
       ObjectMappingMultiPageEditor editor =
           (ObjectMappingMultiPageEditor) AbstractOpenHandler.openEditor(ts.getAut());
       editor.getSite().getPage().activate(editor);
       break;
     }
   }
 }
示例#2
0
 /** @return all startable testsuites */
 public SortedSet<ITestSuitePO> getAllTestSuites() {
   SortedSet<ITestSuitePO> testSuites = new TreeSet<ITestSuitePO>();
   IProjectPO project = GeneralStorage.getInstance().getProject();
   if (project != null) {
     List<ITestSuitePO> tsInProject = TestSuiteBP.getListOfTestSuites(project);
     for (ITestSuitePO ts : tsInProject) {
       if (isTestSuiteStartable(ts)) {
         testSuites.add(ts);
       }
     }
   }
   return testSuites;
 }
 /** {@inheritDoc} */
 @Override
 public List<? extends Object> getAll() {
   return TestSuiteBP.getListOfTestSuites();
 }