当前位置: 首页>>代码示例>>Java>>正文


Java IBuilder类代码示例

本文整理汇总了Java中org.eclipse.cdt.managedbuilder.core.IBuilder的典型用法代码示例。如果您正苦于以下问题:Java IBuilder类的具体用法?Java IBuilder怎么用?Java IBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IBuilder类属于org.eclipse.cdt.managedbuilder.core包,在下文中一共展示了IBuilder类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ConfigureProjectNature

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
private static void ConfigureProjectNature(IProject project) throws CoreException {
	// Set up build information
	ICProjectDescriptionManager pdMgr = CoreModel.getDefault().getProjectDescriptionManager();
	ICProjectDescription cProjDesc = pdMgr.createProjectDescription(project, false);
	ManagedBuildInfo info = ManagedBuildManager.createBuildInfo(project);
	ManagedProject mProj = new ManagedProject(cProjDesc);
	info.setManagedProject(mProj);

	CfgHolder cfgHolder = new CfgHolder(null, null);
	String s = "0";
	Configuration config = new Configuration(mProj, (ToolChain)null, ManagedBuildManager.calculateChildId(s, null), cfgHolder.getName());
	IBuilder builder = config.getEditableBuilder();
	builder.setManagedBuildOn(false);
	CConfigurationData data = config.getConfigurationData();
	cProjDesc.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);

	pdMgr.setProjectDescription(project, cProjDesc);
}
 
开发者ID:ffmmjj,项目名称:uefi_edk2_wizards_plugin,代码行数:19,代码来源:ExistingEdk2ModuleProjectCreator.java

示例2: createConfiguration

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
private IConfiguration createConfiguration(IConfiguration cfg, IManagedProject proj, ICProjectDescription des) throws WriteAccessException, CoreException {
	String id = ManagedBuildManager.calculateChildId(cfg.getId(), null);
	// CProjectDescriptionManager.getInstance();
	Configuration config = new Configuration((ManagedProject) proj, (Configuration) cfg, id, false, true);
	CConfigurationData data = config.getConfigurationData();
	ICConfigurationDescription cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);
	config.setConfigurationDescription(cfgDes);
	config.exportArtifactInfo();

	// Force internal builder
	IBuilder internalBuilder = ManagedBuildManager.getInternalBuilder();
	config.changeBuilder(internalBuilder, internalBuilder.getId(), internalBuilder.getName());

	// IBuilder bld = config.getEditableBuilder();
	// if (bld != null) { bld.setManagedBuildOn(true); }

	config.setName(cfg.getName());
	config.setArtifactName(proj.getDefaultArtifactName());

	return config;
}
 
开发者ID:maven-nar,项目名称:m2e-nar,代码行数:22,代码来源:CProjectConfigurator.java

示例3: shouldBuild

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
protected boolean shouldBuild(int kind, IManagedBuildInfo info) {
	IConfiguration cfg = info.getDefaultConfiguration();
	IBuilder builder = null;
	if (cfg != null) {
		builder = cfg.getEditableBuilder();
	switch (kind) {
	case IncrementalProjectBuilder.AUTO_BUILD :
		return true;
	case IncrementalProjectBuilder.INCREMENTAL_BUILD : // now treated as the same!
	case IncrementalProjectBuilder.FULL_BUILD :
		return builder.isFullBuildEnabled() | builder.isIncrementalBuildEnabled() ;
	case IncrementalProjectBuilder.CLEAN_BUILD :
		return builder.isCleanBuildEnabled();
	}
	}
	return true;
}
 
开发者ID:rungemar,项目名称:cmake4cdt,代码行数:18,代码来源:CMakeProjectBuilderImpl.java

示例4: initialize

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
@Override
public void initialize(int buildKind, IConfiguration cfg, IBuilder builder, IProgressMonitor monitor) {
  // Save the project so we can get path and member information
  this.project = cfg.getOwner().getProject();
  // Save the monitor reference for reporting back to the user
  this.monitor = monitor;
  // Cache the build tools
  this.config = cfg;
  this.builder = builder;
}
 
开发者ID:15knots,项目名称:cmake4eclipse,代码行数:11,代码来源:BuildscriptGenerator.java

示例5: invokeBuild

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
@Override
public boolean invokeBuild(int kind, IProject project,
    IConfiguration configuration, IBuilder builder, IConsole console,
    IMarkerGenerator markerGenerator,
    IncrementalProjectBuilder projectBuilder, IProgressMonitor monitor)
    throws CoreException {
  /*
   * wrap the passed-in builder into one that gets its build command from the
   * Cmake-generator. First do a sanity check.
   */
  if (builder.getBaseId().equals("de.marw.cdt.cmake.core.genscriptbuilder")) {
    final ICConfigurationDescription cfgd = ManagedBuildManager
        .getDescriptionForConfiguration(configuration);

    if (kind == IncrementalProjectBuilder.CLEAN_BUILD) {
      // avoid calling 'rm -rf' if it is a clean build and the build dir was
      // deleted
      final IPath builderCWD = cfgd.getBuildSetting().getBuilderCWD();
      final IPath location = ResourcesPlugin.getWorkspace().getRoot().getFile(builderCWD).getLocation();
      if (location == null || !location.toFile().exists()) {
        return true; // is clean
      }
    }

    final CMakePreferences prefs = ConfigurationManager.getInstance()
        .getOrLoad(cfgd);
    final AbstractOsPreferences osPrefs = AbstractOsPreferences
        .extractOsPreferences(prefs);

    // try to get CMAKE_BUILD_TOOL entry from CMakeCache.txt...
    final CmakeGenerator generator = osPrefs.getGenerator();
    String buildscriptProcessorCmd = getCommandFromCMakeCache(cfgd,
        generator != osPrefs.getGeneratedWith());
    if (buildscriptProcessorCmd == null) {
      // fall back to values from OS preferences
      buildscriptProcessorCmd = osPrefs.getBuildscriptProcessorCommand();
      if (buildscriptProcessorCmd == null) {
        // fall back to built-in defaults from CMake generator
        buildscriptProcessorCmd = generator.getBuildscriptProcessorCommand();
      }
    }
    builder = new CmakeBuildToolInjectorBuilder(builder,
        buildscriptProcessorCmd, generator);
  }
  return super.invokeBuild(kind, project, configuration, builder, console,
      markerGenerator, projectBuilder, monitor);
}
 
开发者ID:15knots,项目名称:cmake4eclipse,代码行数:48,代码来源:CmakeBuildRunner.java

示例6: getSuperClass

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
@Override
public IBuilder getSuperClass() {
  return this.delegate.getSuperClass();
}
 
开发者ID:15knots,项目名称:cmake4eclipse,代码行数:5,代码来源:CmakeBuildRunner.java

示例7: matches

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
@Override
public boolean matches(IBuilder builder) {
  return this.delegate.matches(builder);
}
 
开发者ID:15knots,项目名称:cmake4eclipse,代码行数:5,代码来源:CmakeBuildRunner.java

示例8: CmakeBuildToolInjectorBuilder

import org.eclipse.cdt.managedbuilder.core.IBuilder; //导入依赖的package包/类
/**
 * @param delegate
 *        the builder we delegate most of the methods to
 * @param cmakeBuildTool
 *        the buildscript processor command to inject (e.g. 'make')
 * @param generator
 *        the cmake generator that generated the build scripts.
 */
public CmakeBuildToolInjectorBuilder(IBuilder delegate,
    String cmakeBuildTool, CmakeGenerator generator) {
  this.delegate = delegate;
  this.cmakeBuildTool = cmakeBuildTool;
  this.generator = generator;
}
 
开发者ID:15knots,项目名称:cmake4eclipse,代码行数:15,代码来源:CmakeBuildRunner.java


注:本文中的org.eclipse.cdt.managedbuilder.core.IBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。