Examples of IVirtualFolder


Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

  }

  private void createModuleEntry(IProject project) throws CoreException {
   
    IVirtualComponent component = ComponentCore.createComponent(project);
    IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/")//$NON-NLS-1$
    moduleOutputFolder.createLink(new Path(Constants.OUTPUT_FOLDER).append(basePackageFragment.getElementName()+'.'+getTypeName()), IResource.FORCE, null);
   
  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

  }

  private void createModuleEntry(IProject project) throws CoreException {
   
    IVirtualComponent component = ComponentCore.createComponent(project);
    IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/")//$NON-NLS-1$
    moduleOutputFolder.createLink(new Path(Constants.OUTPUT_FOLDER).append(basePackageFragment.getElementName()+'.'+getTypeName()), IResource.FORCE, null);
   
  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

  }

  public static void createModuleEntry(IProject project, String moduleName) throws CoreException {

    IVirtualComponent component = ComponentCore.createComponent(project);
    IVirtualFolder folder = component.getRootFolder().getFolder("/");
    IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IResource[] underlyingResources = folder.getUnderlyingResources();
    IVirtualResource[] members = folder.members();
    // IVirtualResource[] members = folder.members();
    // IVirtualFolder folder2 = folder.getFolder(new
    // Path(getGwtOutputFolder()).append(moduleName));
    // IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/"); //$NON-NLS-1$
    moduleOutputFolder.createLink(new Path(getGwtOutputFolder()).append(moduleName), IResource.FORCE, null);

  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

     */

    public static IFolder getWebInfLibDir( final IProject pj )
    {
        final IVirtualComponent vc = ComponentCore.createComponent( pj );
        final IVirtualFolder vf = vc.getRootFolder().getFolder( "WEB-INF/lib" );
        return (IFolder) vf.getUnderlyingFolder();
    }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

  }

  public static void createModuleEntry(IProject project, String moduleName) throws CoreException {
   
    IVirtualComponent component = ComponentCore.createComponent(project);
    IVirtualFolder folder = component.getRootFolder().getFolder("/");
    IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IResource[] underlyingResources = folder.getUnderlyingResources();
    IVirtualResource[] members = folder.members();
//    IVirtualResource[] members = folder.members();
//    IVirtualFolder folder2 = folder.getFolder(new Path(getGwtOutputFolder()).append(moduleName));
//    IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/")//$NON-NLS-1$
    moduleOutputFolder.createLink(new Path(getGwtOutputFolder()).append(moduleName), IResource.FORCE, null);
   
  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

    String webFolder = getWebContentFolderName();
    if (proj.exists()) {
      //Bug 330819 - Project Properties - Facets - Change Configuration - Receive npe error
      IVirtualComponent virtComponent = ComponentCore.createComponent(proj);
      if (virtComponent != null) {
        IVirtualFolder virtFolder = virtComponent.getRootFolder();
        if (virtFolder != null) {
          IContainer container = virtFolder.getUnderlyingFolder();
          if (container != null) {
            webContentPath = container.getRawLocation();
          }
        }
      } else {
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

    IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projName);
    if (project.exists()){
      //Bug 330819 - Project Properties - Facets - Change Configuration - Receive npe error
      IVirtualComponent virtComponent = ComponentCore.createComponent(project);
      if (virtComponent != null) {
        IVirtualFolder virtFolder = virtComponent.getRootFolder();
        if (virtFolder != null) {
          IContainer container = virtFolder.getUnderlyingFolder();
          if (container != null) {
            IPath webContentPath = container.getProjectRelativePath();
            return webContentPath.toString();
          }
        }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

   * folder.
   */
  public static IPath getWebContentFolderRelativePath(IFile file) {
    IPath path = null;
    if (file != null) {
      IVirtualFolder webContentFolder = getWebContentFolder(file.getProject());
      if (webContentFolder != null) {
        IPath webContentPath = webContentFolder.getProjectRelativePath();
        IPath filePath = file.getProjectRelativePath();
        int matchingFirstSegments = webContentPath.matchingFirstSegments(filePath);
        path = filePath.removeFirstSegments(matchingFirstSegments);
      }
    }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

     */
    protected void initDefConfigPath() {
      if (defConfigPath == null) {
        IProject project = getJSFAppConfigManager().getProject();
        if (project != null) {
          IVirtualFolder webContentFolder = new DefaultVirtualComponentQuery().getWebContentFolder(project);
          if (webContentFolder != null) {
            IVirtualResource defConfigFile = webContentFolder.findMember(DEF_APPCONFIGRESOURCE_FILENAME);
            if (defConfigFile != null) {
              defConfigPath = defConfigFile.getWorkspaceRelativePath();
            }
          }
        }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder

            }
          }
          else {
            // http://bugs.eclipse.org/338751
            IVirtualFolder virtualFolder = ComponentCore.createFolder(project, referenceRuntimePath);
            if (virtualFolder != null && virtualFolder.exists()) {
              IContainer[] underlyingFolders = virtualFolder.getUnderlyingFolders();
              for (int j = 0; j < underlyingFolders.length; j++) {
                if (underlyingFolders[j].getProject().equals(project) && underlyingFolders[j].isAccessible()) {
                  return underlyingFolders[j].getFullPath();
                }
              }
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.