我正在开发一个继承自CDTCommonProjectWizard的项目,我的问题是如何在选择完成按钮时获取所有数据,我需要项目名称,项目类型和工具链。
答案 0 :(得分:0)
public class MyNewWizard extends org.eclipse.cdt.ui.wizards.CDTProjectWizard
{
@Override
protected IProject continueCreation(IProject prj) {
// This is run at the end of the creation process
// The things you specifically asked for:
// prj.getName()
// prj.getType()
// toolchainManagedBuildManager.getBuildInfo(prj).getManagedProject().getConfigurations()[0].getToolChain()
return super.continueCreation(prj);
}