Examples of IBuildpathEntry


Examples of org.eclipse.dltk.core.IBuildpathEntry

        } else if (resourceToFilter instanceof IFile) {
          addFilter(filteredPath, true,
              IStepFilterTypes.PHP_PROJECT_FILE);
        }
      } else if (resourceToFilter instanceof IBuildpathEntry) {
        IBuildpathEntry entry = (IBuildpathEntry) resourceToFilter;
        filteredPath = EnvironmentPathUtils.getLocalPath(
            entry.getPath()).toOSString();
        if (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) {// variable
          addFilter(filteredPath, true,
              IStepFilterTypes.PHP_INCLUDE_PATH_VAR);
        } else if (entry.getEntryKind() == IBuildpathEntry.BPE_LIBRARY) {// library
                                          // =
                                          // folder
          addFilter(filteredPath, true,
              IStepFilterTypes.PHP_INCLUDE_PATH_LIBRARY);
        }

      } else if (resourceToFilter instanceof IncPathFile) {
        IBuildpathEntry entry = ((IncPathFile) resourceToFilter)
            .getBuildpathEntry();
        File file = ((IncPathFile) resourceToFilter).file;
        filteredPath = file.getAbsolutePath();
        if (file.isDirectory()) {
          if (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) {
            addFilter(filteredPath, true,
                IStepFilterTypes.PHP_INCLUDE_PATH_VAR_FOLDER);
          } else if (entry.getEntryKind() == IBuildpathEntry.BPE_LIBRARY) {
            addFilter(
                filteredPath,
                true,
                IStepFilterTypes.PHP_INCLUDE_PATH_LIBRARY_FOLDER);
          }
        } else {
          if (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) {
            addFilter(filteredPath, true,
                IStepFilterTypes.PHP_INCLUDE_PATH_VAR_FILE);
          } else if (entry.getEntryKind() == IBuildpathEntry.BPE_LIBRARY) {
            addFilter(filteredPath, true,
                IStepFilterTypes.PHP_INCLUDE_PATH_LIBRARY_FILE);
          }
        }
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

   * are ignored.
   */
  public static boolean buildpathContains(IBuildpathEntry[] list,
      IBuildpathEntry entry) {
    for (int i = 0; i < list.length; i++) {
      IBuildpathEntry other = list[i];
      if (other.getContentKind() == entry.getContentKind()
          && other.getEntryKind() == entry.getEntryKind()
          && other.isExported() == entry.isExported()
          && other.getPath().equals(entry.getPath())) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

      NodeList list = cpElement
          .getElementsByTagName(TAG_INCLUDEPATHENTRY);
      for (int i = 0; i < list.getLength(); ++i) {
        final Node node = list.item(i);
        if (node.getNodeType() == Node.ELEMENT_NODE) {
          final IBuildpathEntry entry = elementDecode((Element) node);
          if (entry != null) {
            paths.add(entry);
          }
        }
      }
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

    String pathAttr = element.getAttribute(TAG_PATH);
    String resourceAttr = element.getAttribute(TAG_RESOURCE);

    // exported flag (optional)
    boolean isExported = element.getAttribute(TAG_EXPORTED).equals("true"); //$NON-NLS-1$
    IBuildpathEntry entry = null;
    IPath path = null;
    String variableName = null;

    int entryKind = entryKindFromString(entryKindAttr);
    switch (entryKind) {
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

      if (containerIndex == 0){
        throw new RuntimeException("No container buildpath entry found.");
      }

      IBuildpathEntry container = buildpath[containerIndex];
      buildpath[containerIndex] = DLTKCore.newContainerEntry(
          ScriptRuntime.newInterpreterContainerPath(interpreter),
          container.getAccessRules(),
          container.getExtraAttributes(),
          container.isExported());
      scriptProject.setRawBuildpath(buildpath, null);
    }

    scriptProject.makeConsistent(null);
    scriptProject.save(null, false);
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

         
          IScriptProject scriptProject = DLTKCore.create(project);
          IFile vendorPath = project.getFile(SymfonyCoreConstants.VENDOR_PATH);
         
          if (vendorPath != null && vendorPath.getRawLocation().toFile().exists()) {
            IBuildpathEntry sourceEntry = DLTKCore.newSourceEntry(vendorPath.getFullPath(), new IPath[] {
                new Path(SymfonyCoreConstants.SKELETON_PATTERN),
                new Path(SymfonyCoreConstants.TEST_PATTERN),
                new Path(SymfonyCoreConstants.CG_FIXTURE_PATTERN)
            });       
            BuildPathManager.setExclusionPattern(scriptProject, sourceEntry);
View Full Code Here

Examples of org.eclipse.dltk.core.IBuildpathEntry

  @Override
  protected void finishPage(IProgressMonitor monitor) throws Exception {

    IPath vendorPath = getSymfonyFolderPath(getProject(), SymfonyCoreConstants.VENDOR_PATH);

    IBuildpathEntry sourceEntry = DLTKCore.newSourceEntry(vendorPath, new IPath[] {
      new Path(SymfonyCoreConstants.SKELETON_PATTERN),
      new Path(SymfonyCoreConstants.TEST_PATTERN),
      new Path(SymfonyCoreConstants.CG_FIXTURE_PATTERN)
    });
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.