• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java IOption类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: clearOptions

import org.eclipse.cdt.managedbuilder.core.IOption; //导入依赖的package包/类
public void clearOptions() throws CoreException {
	try {
		for (ITool tool : config.getToolsBySuperClassId(toolId)) {
			for (IOption option : tool.getOptions()) {
				switch (option.getValueType()) {
				case IOption.BOOLEAN:
					config.setOption(tool, option, false);
					break;
				case IOption.STRING:
					config.setOption(tool, option, (String) null);
					break;
				}
			}
		}
	} catch (BuildException e) {
		throw new CoreException(new Status(IStatus.ERROR, MavenNarPlugin.PLUGIN_ID, "Couldn't clear options", e));
	}
}
 
开发者ID:maven-nar,项目名称:m2e-nar,代码行数:19,代码来源:OptionSetter.java


示例2: setOption

import org.eclipse.cdt.managedbuilder.core.IOption; //导入依赖的package包/类
public void setOption(final String optionId, final String value) throws CoreException {
	try {
		for (final ITool tool : config.getToolsBySuperClassId(toolId)) {
			final IOption option = tool.getOptionBySuperClassId(optionId);
			config.setOption(tool, option, value);
		}
	} catch (BuildException e) {
		throw new CoreException(new Status(IStatus.ERROR, MavenNarPlugin.PLUGIN_ID, "Couldn't set " + optionId + " option", e));
	}
}
 
开发者ID:maven-nar,项目名称:m2e-nar,代码行数:11,代码来源:OptionSetter.java


示例3: getToolSettings

import org.eclipse.cdt.managedbuilder.core.IOption; //导入依赖的package包/类
private void getToolSettings()   {
	ITool cmakeTool = getCMakeTool();

	try {
		IOption toolchainfileOption = cmakeTool.getOptionBySuperClassId(CMAKE_OPTION_TOOLCHAINFILE);
		m_toolchainFile = toolchainfileOption.getStringValue();
		cmakeToolchainFileTextField.setText(m_toolchainFile);

		IOption builyTypeOption = cmakeTool.getOptionBySuperClassId(CMAKE_OPTION_BUILDTYPE);
		m_buildType = builyTypeOption.getStringValue();
		switch(m_buildType) 
		{
		case "Debug":          cmakeBuildTypeCombo.select(0);
		case "Release":        cmakeBuildTypeCombo.select(1);
		case "RelWithDebInfo": cmakeBuildTypeCombo.select(2);
		case "MinSizeRel":     cmakeBuildTypeCombo.select(3);
		default:               cmakeBuildTypeCombo.select(0);
		}					
		
		IOption debugOption = cmakeTool.getOptionBySuperClassId(CMAKE_OPTION_DEBUG);
		m_debug = debugOption.getBooleanValue();
		debugBtn.setSelection(m_debug);
		
		IOption traceOption = cmakeTool.getOptionBySuperClassId(CMAKE_OPTION_TRACE);
		m_trace = traceOption.getBooleanValue();
		traceBtn.setSelection(m_trace);
		
	} catch (BuildException e1) {
		// TODO Auto-generated catch block
		e1.printStackTrace();
	}
}
 
开发者ID:rungemar,项目名称:cmake4cdt,代码行数:33,代码来源:CPropertyTab.java


示例4: createOption

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


示例5: removeOption

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


示例6: getOption

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


示例7: getOptionById

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


示例8: getOptionBySuperClassId

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


示例9: getOptions

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


示例10: getOptionToSet

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


示例11: setToolSettings

import org.eclipse.cdt.managedbuilder.core.IOption; //导入依赖的package包/类
private void setToolSettings()  {
		
		
//		if( settingsChanged() ) {
			rmOutputDir();
//		}
		ITool cmakeTool = getCMakeTool();
		
		try {
	        // -- get resource info. (where things are saved to).
	        IResourceInfo resourceInfos[] = ManagedBuildManager.getConfigurationForDescription(cfgd).getResourceInfos();
	        IResourceInfo resourceInfo = resourceInfos[0];

	        IOption toolchainfileOptionTmpl = cmakeTool.getOptionById(CMAKE_OPTION_TOOLCHAINFILE);

	        IOption toolchainfileOption = cmakeTool.getOptionToSet(toolchainfileOptionTmpl, false);
			toolchainfileOption.setValue(m_toolchainFile);
	        ManagedBuildManager.setOption(resourceInfo, cmakeTool, toolchainfileOption, m_toolchainFile);

			IOption builyTypeOptionTmpl = cmakeTool.getOptionById(CMAKE_OPTION_BUILDTYPE);
			IOption builyTypeOption = cmakeTool.getOptionToSet(builyTypeOptionTmpl, false);
			builyTypeOption.setValue(m_buildType);
	        ManagedBuildManager.setOption(resourceInfo, cmakeTool, toolchainfileOption, m_toolchainFile);

			IOption debugOptionTmpl = cmakeTool.getOptionById(CMAKE_OPTION_DEBUG);
			IOption debugOption = cmakeTool.getOptionToSet(debugOptionTmpl, false);
			debugOption.setValue(m_debug);
	        ManagedBuildManager.setOption(resourceInfo, cmakeTool, toolchainfileOption, m_toolchainFile);
			
			IOption traceOptionTmpl = cmakeTool.getOptionById(CMAKE_OPTION_TRACE);
			IOption traceOption = cmakeTool.getOptionToSet(traceOptionTmpl, false);
			traceOption.setValue(m_trace);
	        ManagedBuildManager.setOption(resourceInfo, cmakeTool, toolchainfileOption, m_toolchainFile);
 
	        // ------ Save this business to disk.
	        ManagedBuildManager.saveBuildInfo(cfgd.getProjectDescription().getProject(), true);
			
		} catch (BuildException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
	}
 
开发者ID:rungemar,项目名称:cmake4cdt,代码行数:44,代码来源:CPropertyTab.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GameActionException类代码示例发布时间:2022-05-15
下一篇:
Java MosLiteEDVoCollection类代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap