Examples of PHPVersion


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

    project = ResourcesPlugin.getWorkspace().getRoot().getProject(
        map.get(ProjectSuite.PROJECT).toString());
    perfMonitor = PHPCorePerformanceTests.getPerformanceMonitor();
    TestSuite suite = new TestSuite("Formatter 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,
View Full Code Here

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

  }

  // FIXME : remove this redundant method
  public void setPropertiesInDataModel(IDataModel dataModel) {
    if (fEnableProjectSettings.getSelection()) {
      PHPVersion version = fConfigurationBlock.getPHPVersionValue();
      boolean useASPTags = fConfigurationBlock.getUseAspTagsValue();
      dataModel.setBooleanProperty(Keys.EDITOR_USE_ASP_TAGS, useASPTags);
      dataModel.setStringProperty(Keys.PHP_VERSION, version.getAlias());
    }
  }
View Full Code Here

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

    }
  }

  public void setPropertiesInDataModel(IProject project) {
    if (fEnableProjectSettings.getSelection()) {
      PHPVersion version = fConfigurationBlock.getPHPVersionValue();
      boolean useASPTags = fConfigurationBlock.getUseAspTagsValue();

      // FIXME : update project with values
      // dataModel.setBooleanProperty(Keys.EDITOR_USE_ASP_TAGS,
      // useASPTags);
View Full Code Here

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

    }
    return false;
  }

  protected boolean supportsNamespaces(IScriptProject project) {
    PHPVersion version = ProjectOptions.getPhpVersion(project.getProject());
    return version.isGreaterThan(PHPVersion.PHP5);
  }
View Full Code Here

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

          htmlFormatter.formatDocument(document);
        } catch (Exception e) {
          // TODO: handle exception
        }
        // php format
        PHPVersion version = ProjectOptions.getPhpVersion(project);
        boolean useShortTags = ProjectOptions.useShortTags(project);
        ICodeFormattingProcessor codeFormatterVisitor = getCodeFormattingProcessor(
            project, document, version, useShortTags, region);
        if (codeFormatterVisitor instanceof CodeFormatterVisitor) {
          List<ReplaceEdit> changes = ((CodeFormatterVisitor) codeFormatterVisitor)
View Full Code Here

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

    if (fFirstPage.fVersionGroup.fDefaultValues.isSelected()) {
      return;
    }
    boolean useASPTags = fFirstPage.fVersionGroup.fConfigurationBlock
        .getUseAspTagsValue();
    PHPVersion phpVersion = fFirstPage.fVersionGroup.fConfigurationBlock
        .getPHPVersionValue();
    ProjectOptions.setSupportingAspTags(useASPTags, getProject());
    ProjectOptions.setPhpVersion(phpVersion, getProject());
  }
View Full Code Here

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

        BasicNewProjectResourceWizard.updatePerspective(fConfigElement);
      }
      selectAndReveal(fLastPage.getScriptProject().getProject());

      IProject project = fLastPage.getScriptProject().getProject();
      PHPVersion version = fFirstPage.getPHPVersionValue();
      if (version == null) {
        version = ProjectOptions.getDefaultPhpVersion();
      }
      try {
        PHPFacets.createFacetedProject(project, version,
View Full Code Here

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

  public static Test suite() {
    TestSuite suite = new TestSuite("Code Assist Project Tests");
    for (final String testProject : TEST_DIRS.keySet()) {

      PHPVersion phpVersion = TEST_DIRS.get(testProject);
      final CodeAssistProjectTests projectTests = new CodeAssistProjectTests(
          testProject, phpVersion);

      for (final File file : new File(projectTests
          .getSourceWorkspacePath(), testProject).listFiles()) {
View Full Code Here

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

    project = ResourcesPlugin.getWorkspace().getRoot().getProject(
        map.get(ProjectSuite.PROJECT).toString());
    perfMonitor = PHPCorePerformanceTests.getPerformanceMonitor();
    TestSuite suite = new TestSuite("Locator 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,
View Full Code Here

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

    }
    return PHPContentOutlineConfiguration.NO_CHILDREN;
  }

  private boolean isNamespaceSupported(IModelElement modelElement) {
    PHPVersion phpVersion = null;
    if (modelElement == null || modelElement.getScriptProject() == null) {
      String versionName = CorePreferencesSupport.getInstance()
          .getWorkspacePreferencesValue(
              PHPCoreConstants.PHP_OPTIONS_PHP_VERSION);
      phpVersion = PHPVersion.byAlias(versionName);
    } else {
      phpVersion = ProjectOptions.getPhpVersion(modelElement
          .getScriptProject().getProject());
    }
    return phpVersion.isGreaterThan(PHPVersion.PHP5);
  }
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.