Package org.eclipse.cdt.managedbuilder.core

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


   * @param proj IProject Project
   * @return IConfiguration[] Build configurations
   */
  private static IConfiguration[] getAllBuildConfigs(IProject proj) {
    IConfiguration[] configurations = new IConfiguration[] {};
    IManagedBuildInfo info = null;
    //try to get Managed build info
    try {
      info = ManagedBuildManager.getBuildInfo(proj); //null if doesn't exists
    } catch (Exception e) { //if not a managed build project
      //print error
      e.printStackTrace();
      return configurations;
    }
    //info can be null for projects without build info. For example, when creating a project
    //from Import >�C/C++ Executable
    if(info == null) {
      return configurations;
    }
    //get ManagedProject associated with build info
    IManagedProject mProj = info.getManagedProject();

    //get all build configurations of the project
    configurations = mProj.getConfigurations();
    return configurations;
  }
View Full Code Here


     * not working
     *
     * @param project
     */
    public static void setDirtyFlag(IProject project, ICConfigurationDescription cfgDescription) {
  IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(project);
  if (buildInfo == null) {
      return; // Project is not a managed build project
  }

  IFolder buildFolder = project.getFolder(cfgDescription.getName());
View Full Code Here

TOP

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

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.