如何获取CDTCommonProjectWizard上的所有数据

时间:2014-03-18 13:26:07

标签: eclipse-cdt

我正在开发一个继承自CDTCommonProjectWizard的项目,我的问题是如何在选择完成按钮时获取所有数据,我需要项目名称,项目类型和工具链。

1 个答案:

答案 0 :(得分:0)

查看continueCreation()

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);
}