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


Java IWorkbenchWizard.getPages方法代码示例

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


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

示例1: openNewElementWizard

import org.eclipse.ui.IWorkbenchWizard; //导入方法依赖的package包/类
private IWizardPage[] openNewElementWizard(IWorkbenchWizard wizard, Shell shell, Object selection) {
	wizard.init(JavaPlugin.getDefault().getWorkbench(), new StructuredSelection(selection));

	WizardDialog dialog= new WizardDialog(shell, wizard);
	PixelConverter converter= new PixelConverter(JFaceResources.getDialogFont());
	dialog.setMinimumPageSize(converter.convertWidthInCharsToPixels(70), converter.convertHeightInCharsToPixels(20));
	dialog.create();
	dialog.open();
	IWizardPage[] pages= wizard.getPages();
	return pages;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:CreateTargetQueries.java

示例2: create_a_niem_model

import org.eclipse.ui.IWorkbenchWizard; //导入方法依赖的package包/类
public void create_a_niem_model(final String theModelName) throws CoreException {
    final IWorkbench theWorkbench = get_the_workbench();
    final IWorkbenchWizard theWizard = theWorkbench.getNewWizardRegistry().findWizard(NewNiemModelWizard.ID)
            .createWizard();
    theWizard.init(theWorkbench, new StructuredSelection(projectProvider.get()));

    final WizardDialog theDialog = new WizardDialog(null, theWizard);
    theDialog.setBlockOnOpen(false);
    theDialog.open();

    final WizardNewFileCreationPage theNewModelFilePage = (WizardNewFileCreationPage) theWizard.getPages()[0];
    theNewModelFilePage.setFileName(theModelName + ".di");

    select_the_default_button(theDialog);
    select_the_default_button(theDialog);

    final SetMPDValuesPage theSecondMpdValuesPage = (SetMPDValuesPage) theWizard.getPages()[2];
    theSecondMpdValuesPage.setDomains(asList("Test Domain"));
    theSecondMpdValuesPage.setKeywords(asList("Test Keyword"));
    theSecondMpdValuesPage.setAuthoritativeSourceName("Test Name");
    select_the_default_button(theDialog);

    final SetPOCValuesPage thePOCValuesPage = (SetPOCValuesPage) theWizard.getPages()[3];
    thePOCValuesPage.setPointsOfContact(singletonList(new PointOfContact("Test POC Name",
            singletonList("[email protected]"), singletonList("555-5555"))));
    select_the_default_button(theDialog);
}
 
开发者ID:info-sharing-environment,项目名称:NIEM-Modeling-Tool,代码行数:28,代码来源:CreatesATemporaryNiemUmlModel.java


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