Examples of PHPVersion


Examples of org.eclipse.php.internal.core.PHPVersion

    getProject().refreshLocal(0, monitor);
  }

  protected void setPhpLangOptions() {
    boolean useASPTags = false;
    PHPVersion phpVersion = firstPage.versionGroup.fConfigurationBlock.getPHPVersionValue();
    ProjectOptions.setSupportingAspTags(useASPTags, getProject());
    ProjectOptions.setPhpVersion(phpVersion, getProject());
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

    if (res) {
     
      BasicNewProjectResourceWizard.updatePerspective(config);
      selectAndReveal(lastPage.getScriptProject().getProject());
      IProject project = lastPage.getScriptProject().getProject();
      PHPVersion version = firstPage.getPHPVersionValue();
      if (version == null) {
        version = ProjectOptions.getDefaultPhpVersion();
      }
     
      FacetManager.installFacets(project, version, null);
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

        if (!NULL_PLACE_HOLDER.equals(defaultItemForPHPVersions[i])) {
          final String[] phpVersions = defaultItemForPHPVersions[i]
              .length() > 0 ? defaultItemForPHPVersions[i]
              .split(SEPARATOR_FOR_PHPVERSION) : new String[0];
          for (int j = 0; j < phpVersions.length; j++) {
            PHPVersion phpVersion = PHPVersion
                .byAlias(phpVersions[j]);
            if (phpVersion != null) {
              item.addPHPVersionToDefaultList(phpVersion);
              defaultItemsForPHPVersion.put(phpVersion, item);
            }
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

    }
  }

  public static String getCurrentDebuggerId(IProject project) {
    if (project != null) {
      PHPVersion phpVersion = ProjectOptions.getPhpVersion(project);
      if (phpVersion != null) {
        return getCurrentDebuggerId(phpVersion);
      }
    }
    return getCurrentDebuggerId();
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

            PHPDebugCorePreferenceNames.DEFAULT_PHP, null);
        if (phpExe != null) {
          return PHPexes.getInstance().getItem(phpExe);
        }
      }
      PHPVersion phpVersion = ProjectOptions.getPhpVersion(project);
      if (phpVersion != null) {
        return getPHPexeItem(phpVersion);
      }
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

    project.build(IncrementalProjectBuilder.FULL_BUILD, null);

    PHPCoreTests.waitForIndexer();
    PHPCoreTests.waitForAutoBuild();

    PHPVersion version = ProjectOptions.getDefaultPhpVersion();
    ISourceModule sourceModule = null;
    sourceModule = DLTKCore.createSourceModuleFrom(testFile);
    ASTParser parser = ASTParser.newParser(
        new InputStreamReader(testFile.getContents()), version, false,
        sourceModule);
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

    IResource resource = source.getResource();
    IProject project = null;
    if (resource instanceof IFile) {
      project = ((IFile) resource).getProject();
    }
    PHPVersion version;
    if (project != null) {
      version = ProjectOptions.getPhpVersion(project);
    } else {
      version = ProjectOptions.getDefaultPhpVersion();
    }
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

        map.get(ProjectSuite.PROJECT).toString());
    perfMonitor = PHPCorePerformanceTests.getPerformanceMonitor();

    TestSuite suite = new TestSuite("Type Inference Tests");

    final PHPVersion phpVersion = (PHPVersion) map
        .get(ProjectSuite.PHP_VERSION);
    for (String testsDirectory : TESTS.get(phpVersion)) {
      testsDirectory = testsDirectory.replaceAll("project", map.get(
          ProjectSuite.PROJECT).toString());
      for (final String fileName : getPDTTFiles(testsDirectory,
          PHPCorePerformanceTests.getDefault().getBundle())) {
        try {
          final PdttFile pdttFile = new PdttFile(
              PHPCorePerformanceTests.getDefault().getBundle(),
              fileName);
          final String pruner = getPrunerType(pdttFile);

          suite.addTest(new TypeInferenceTests(phpVersion.getAlias()
              + " - /" + fileName) {

            protected void setUp() throws Exception {
              PHPCoreTests.setProjectPhpVersion(project,
                  phpVersion);
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

        false);
    if (input == null) {
      return null;
    }

    PHPVersion phpVersion = ProjectOptions.getPhpVersion(input
        .getScriptProject().getProject());
    boolean namespacesSupported = phpVersion.isGreaterThan(PHPVersion.PHP5); // PHP
                                          // 5.3
                                          // and
                                          // greater

    IDocument document = textViewer.getDocument();
View Full Code Here

Examples of org.eclipse.php.internal.core.PHPVersion

      if (astProvider.isActive(unit) && createdAST != null) {
        return createdAST;
      }

      if (initialReconcile || astProvider.isActive(unit)) {
        PHPVersion phpVersion = ProjectOptions.getPhpVersion(unit
            .getScriptProject().getProject());
        ASTParser newParser = ASTParser.newParser(phpVersion, unit);
        createdAST = newParser.createAST(null);
        if (createdAST != null && document != null) {
          createdAST.setSourceModule(unit);
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.