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


Java IWizard.setContainer方法代码示例

本文整理汇总了Java中org.eclipse.jface.wizard.IWizard.setContainer方法的典型用法代码示例。如果您正苦于以下问题:Java IWizard.setContainer方法的具体用法?Java IWizard.setContainer怎么用?Java IWizard.setContainer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.wizard.IWizard的用法示例。


在下文中一共展示了IWizard.setContainer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hardClose

import org.eclipse.jface.wizard.IWizard; //导入方法依赖的package包/类
/**
 * Closes this window.
 * 
 * @return <code>true</code> if the window is (or was already) closed, and
 *         <code>false</code> if it is still open
 */
private boolean hardClose() {
	// inform wizards
	for (int i = 0; i < createdWizards.size(); i++) {
		IWizard createdWizard = (IWizard) createdWizards.get(i);
		try {
			createdWizard.dispose();
		} catch (Exception e) {
			Status status = new Status(IStatus.ERROR, Policy.JFACE, IStatus.ERROR, e.getMessage(), e);
			Policy.getLog().log(status);
		}
		// Remove this dialog as a parent from the managed wizard.
		// Note that we do this after calling dispose as the wizard or
		// its pages may need access to the container during
		// dispose code
		createdWizard.setContainer(null);
	}
	// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=202534
	// disposing the wizards could cause the image currently set in
	// this dialog to be disposed.  A subsequent repaint event during
	// close would then fail.  To prevent this case, we null out the image.
	setTitleImage(null);
	return super.close();
}
 
开发者ID:MentorEmbedded,项目名称:p2-installer,代码行数:30,代码来源:WizardDialog.java

示例2: performFinish

import org.eclipse.jface.wizard.IWizard; //导入方法依赖的package包/类
@Override
public boolean performFinish() {
    // if we're finishing from the main page then perform finish on the
    // selected wizard.
    if (getContainer().getCurrentPage() == mainPage) {
        if (mainPage.canFinishEarly()) {
            final IWizard wizard = mainPage.getSelectedNode().getWizard();
            wizard.setContainer(getContainer());
            return wizard.performFinish();
        }
    }
    return true;
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:14,代码来源:CreateBuildConfigurationWizard.java


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