本文整理汇总了Java中org.eclipse.jface.wizard.IWizardContainer.getCurrentPage方法的典型用法代码示例。如果您正苦于以下问题:Java IWizardContainer.getCurrentPage方法的具体用法?Java IWizardContainer.getCurrentPage怎么用?Java IWizardContainer.getCurrentPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.wizard.IWizardContainer
的用法示例。
在下文中一共展示了IWizardContainer.getCurrentPage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setErrorMessage
import org.eclipse.jface.wizard.IWizardContainer; //导入方法依赖的package包/类
/**
* Sets the error message for the active wizard page.
*
* Note that this method has no effect if the current page doesn't support error messages.
*/
private void setErrorMessage(String message) {
IWizardContainer container = getContainer();
if (container != null) {
IWizardPage currentPage = container.getCurrentPage();
if (currentPage instanceof DialogPage) {
((DialogPage) currentPage).setErrorMessage(message);
}
}
}
示例2: setUseTemplate
import org.eclipse.jface.wizard.IWizardContainer; //导入方法依赖的package包/类
public void setUseTemplate(boolean useTemplate){
fUseTemplate.setSelection(useTemplate);
wizardSelectionViewer.getControl().setEnabled(useTemplate);
if (!useTemplate)
setDescription(""); //$NON-NLS-1$
setDescriptionEnabled(useTemplate);
IWizardContainer container = getContainer();
if(container.getCurrentPage() != null){
container.updateButtons();
}
}
示例3: resetPageState
import org.eclipse.jface.wizard.IWizardContainer; //导入方法依赖的package包/类
/**
* Resets the current page state by clearing the error message and making
* the page complete, thereby allowing users to flip to the next page.
*/
protected void resetPageState() {
if (pages.size() == 0)
return;
WizardPage firstPage = pages.get(0).page;
IWizardContainer container = firstPage.getWizard().getContainer();
WizardPage currentPage = (WizardPage) container.getCurrentPage();
currentPage.setErrorMessage(null);
currentPage.setPageComplete(true);
}