本文整理汇总了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;
}
示例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