Examples of installProjectFacet()


Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

        if (facetedProject == null) {
          facetedProject = ProjectFacetsManager.create(project, true,
              monitor);
        }
        if (facetedProject != null) {
          facetedProject.installProjectFacet(
              FACET.getDefaultVersion(), null, null);
        }
      } catch (CoreException e) {
        CloudFoundryPlugin.log(e);
      }
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

        IFacetedProject facetedProject = ProjectFacetsManager.create(project);
        IProjectFacet slingBundleFacet = ProjectFacetsManager.getProjectFacet(facetId);
        IProjectFacetVersion projectFacetVersion = slingBundleFacet.getVersion(facetVersion);

        facetedProject.installProjectFacet(projectFacetVersion, null, new NullProgressMonitor());

    }


    public void deleteMember(IPath path) throws CoreException {
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

  public static void convertToContentPackageProject(IProject aContentProject,
      IProgressMonitor monitor, IPath jcr_root) throws CoreException {
    IProjectFacet slingContentFacet = ProjectFacetsManager.getProjectFacet("sling.content");
    IFacetedProject fp2 = ProjectFacetsManager.create(aContentProject, true, null);
    fp2.installProjectFacet(slingContentFacet.getLatestVersion(), null, null);
   
    ProjectUtil.setSyncDirectoryPath(aContentProject, jcr_root);
    aContentProject.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
  }
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

  public static void convertToBundleProject(IProject aBundleProject)
      throws CoreException {
    IProjectFacet slingContentFacet = ProjectFacetsManager.getProjectFacet("sling.bundle");
    IFacetedProject fp2 = ProjectFacetsManager.create(aBundleProject, true, null);
    fp2.installProjectFacet(slingContentFacet.getLatestVersion(), null, null);
    aBundleProject.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
  }

}
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

          .getProjectFacet(FACET_ID);
      if (faceted.hasProjectFacet(webFacet)) {
        return;
      }
      final IProjectFacetVersion version = webFacet.getVersion(FACET_VERSION_1_0);
      faceted.installProjectFacet(version, null, new NullProgressMonitor());
      try {
        this.storage = new SettingsPhpProjectStorage(project);
      } catch (BackingStoreException e) {
        throw new CoreException(new Status(IStatus.ERROR, PEXServerPlugin.PLUGIN_ID, "Error reading preferences", e)); //$NON-NLS-1$
      }
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

        .createDataModel(new SimpleWebFacetProjectCreationDataModelProvider());

    config = initConfig(config, facet.getDefaultVersion(),
        IFacetedProject.Action.Type.INSTALL, projectName);

    faceted.installProjectFacet(facet.getDefaultVersion(), config,
        new NullProgressMonitor());

    return project;
  }
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

      IProjectFacet composerFacet = ProjectFacetsManager.getProjectFacet(ComposerFacetConstants.COMPOSER_COMPONENT);
     
      // install the fixed facets
     
      if (!facetedProject.hasProjectFacet(coreFacet)) {
        facetedProject.installProjectFacet(coreFacet.getDefaultVersion(), null, monitor);
        facetedProject.installProjectFacet(PHPFacets.convertToFacetVersion(version), null, monitor);
      }
     
      if (!facetedProject.hasProjectFacet(composerFacet)) {
        facetedProject.installProjectFacet(composerFacet.getVersion(ComposerFacetConstants.COMPOSER_COMPONENT_VERSION_1), composerFacet, monitor);
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

     
      // install the fixed facets
     
      if (!facetedProject.hasProjectFacet(coreFacet)) {
        facetedProject.installProjectFacet(coreFacet.getDefaultVersion(), null, monitor);
        facetedProject.installProjectFacet(PHPFacets.convertToFacetVersion(version), null, monitor);
      }
     
      if (!facetedProject.hasProjectFacet(composerFacet)) {
        facetedProject.installProjectFacet(composerFacet.getVersion(ComposerFacetConstants.COMPOSER_COMPONENT_VERSION_1), composerFacet, monitor);
      }
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

        facetedProject.installProjectFacet(coreFacet.getDefaultVersion(), null, monitor);
        facetedProject.installProjectFacet(PHPFacets.convertToFacetVersion(version), null, monitor);
      }
     
      if (!facetedProject.hasProjectFacet(composerFacet)) {
        facetedProject.installProjectFacet(composerFacet.getVersion(ComposerFacetConstants.COMPOSER_COMPONENT_VERSION_1), composerFacet, monitor);
      }

      return facetedProject;
     
    } catch (CoreException ex) {
View Full Code Here

Examples of org.eclipse.wst.common.project.facet.core.IFacetedProject.installProjectFacet()

        .getProjectFacet(PHPFacetsConstants.PHP_COMPONENT);
    fixedFacets.add(phpFacet);
    facetedProject.setFixedProjectFacets(fixedFacets);

    // install the fixed facets
    facetedProject.installProjectFacet(coreFacet.getDefaultVersion(), null,
        monitor);
    facetedProject.installProjectFacet(convertToFacetVersion(phpVersion),
        null, monitor);
  }
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.