本文整理匯總了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