Package org.eclipse.php.core.tests.performance.codeassist

Examples of org.eclipse.php.core.tests.performance.codeassist.CodeAssistPdttFile


      testsDirectory = testsDirectory.replaceAll("project", map.get(
          ProjectSuite.PROJECT).toString());
      for (final String fileName : getPDTTFiles(testsDirectory,
          PHPCorePerformanceTests.getDefault().getBundle())) {
        try {
          final CodeAssistPdttFile pdttFile = new CodeAssistPdttFile(
              PHPCorePerformanceTests.getDefault().getBundle(),
              fileName);
          SelectionEngineTests test = new SelectionEngineTests(
              fileName) {

            protected void setUp() throws Exception {
            }

            protected void tearDown() throws Exception {
              if (testFile != null) {
                testFile.delete(true, null);
                testFile = null;
              }
            }

            protected void runTest() throws Throwable {
              perfMonitor.execute(
                  "PerformanceTests.testSelectionEngine"
                      + "_" + fileName, new Operation() {
                    public void run() throws Exception {
                      IModelElement[] elements = getSelection(pdttFile
                          .getFile());
                    }
                  }, 1, 10);
            }
          };
View Full Code Here

TOP

Related Classes of org.eclipse.php.core.tests.performance.codeassist.CodeAssistPdttFile

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.