Package org.eclipse.cdt.managedbuilder.core

Examples of org.eclipse.cdt.managedbuilder.core.IResourceInfo


  @Override
  public boolean visit(IResourceDelta delta) throws CoreException {
      // Should the visitor keep iterating in current directory
      boolean keepLooking = false;
      IResource resource = delta.getResource();
      IResourceInfo rcInfo = config.getResourceInfo(resource.getProjectRelativePath(), false);
      IFolderInfo fo = null;
      boolean isSource = isSource(resource.getProjectRelativePath());
      if (rcInfo instanceof IFolderInfo) {
    fo = (IFolderInfo) rcInfo;
      }
View Full Code Here


    // If this resource has a Resource Configuration and is not
    // excluded or
    // if it has a file extension that one of the tools builds, add
    // the sudirectory to the list
    // boolean willBuild = false;
    IResourceInfo rcInfo = config.getResourceInfo(resource.getProjectRelativePath(), false);
    if (isSource/* && !rcInfo.isExcluded() */) {
        boolean willBuild = false;
        if (rcInfo instanceof IFolderInfo) {
      String ext = resource.getFileExtension();
      if (((IFolderInfo) rcInfo).buildsFileType(ext) &&
View Full Code Here

  for (IResource res : getSubdirList()) {
      // The builder creates a subdir with same name as source in the
      // build location
      IContainer subDir = (IContainer) res;
      IPath projectRelativePath = subDir.getProjectRelativePath();
      IResourceInfo rcInfo = config.getResourceInfo(projectRelativePath, false);
      PathSettingsContainer cr = postProcs.getChildContainer(rcInfo.getPath(), false, true);
      if (cr == null || cr.getValue() == null)
    continue;

      DepInfo di = (DepInfo) cr.getValue();
View Full Code Here

        }
        if (i == postProcessors.length)
      return true;
    }

    IResourceInfo rcInfo = config.getResourceInfo(container.getPath(), false);
    for (IPath path : getDependencyMakefiles(h)) {
        // The path to search for the dependency makefile
        IPath relDepFilePath = topBuildDir.append(path);
        IFile depFile = root.getFile(relDepFilePath);
        if (depFile == null || !depFile.isAccessible())
View Full Code Here

  // Visit the resources in this folder and add each one to a sources
  // macro, and generate a build rule, if appropriate
  IResource[] resources = module.members();

  IResourceInfo rcInfo;
  IFolder folder = project.getFolder(config.getName());

  for (IResource resource : resources) {
      if (resource.getType() == IResource.FILE) {
    // Check whether this resource is excluded from build
View Full Code Here

      generateOutputResource = project.getFile(generatedOutput);
        } else {
      generatedOutput = getPathForResource(project).append(getBuildWorkingDir()).append(generatedOutputs.get(k));
      generateOutputResource = project.getFile(getBuildWorkingDir().append(generatedOutputs.get(k)));
        }
        IResourceInfo nextRcInfo;
        if (rcInfo instanceof IFileInfo) {
      nextRcInfo = config.getResourceInfo(rcInfo.getPath().removeLastSegments(1), false);
        } else {
      nextRcInfo = rcInfo;
        }
View Full Code Here

    IOption assignToOption = tool.getOptionBySuperClassId(type.getAssignToOptionId());
    IOption option = tool.getOptionBySuperClassId(type.getOptionId());
    if (assignToOption != null && option == null) {
        try {
      int optType = assignToOption.getValueType();
      IResourceInfo rcInfo = tool.getParentResourceInfo();
      if (rcInfo != null) {
          if (optType == IOption.STRING) {
        String optVal = ""; //$NON-NLS-1$
        for (int j = 0; j < allRes.size(); j++) {
            if (j != 0) {
View Full Code Here

  if (folderPath != null) {
      folderPath = folderPath.removeFirstSegments(1);
  } else {
      folderPath = new Path(""); //$NON-NLS-1$
  }
  IResourceInfo rcInfo = config.getResourceInfo(folderPath, false);
  if (rcInfo instanceof IFileInfo) {
      rcInfo = config.getResourceInfo(folderPath.removeLastSegments(1), false);
  }
  String targetExtension = ((IFolderInfo) rcInfo).getOutputExtension(srcExtension);
  if (targetExtension != "") //$NON-NLS-1$
View Full Code Here

    }

    private void initToolInfos() {
  toolInfos = PathSettingsContainer.createRootContainer();

  IResourceInfo rcInfos[] = config.getResourceInfos();
  for (IResourceInfo rcInfo : rcInfos) {
      if (rcInfo.isExcluded() /* && !((ResourceInfo)rcInfo).isRoot() */)
    continue;

      ToolInfoHolder h = getToolInfo(rcInfo.getPath(), true);
View Full Code Here

  return getToolInfo(path, false);
    }

    private ToolInfoHolder getFolderToolInfo(IPath _path) {
  IPath path = _path;
  IResourceInfo rcInfo = config.getResourceInfo(path, false);
  while (rcInfo instanceof IFileInfo) {
      path = path.removeLastSegments(1);
      rcInfo = config.getResourceInfo(path, false);
  }
  return getToolInfo(path, false);
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.managedbuilder.core.IResourceInfo

Copyright © 2018 www.massapicom. 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.