當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。