本文整理汇总了Java中org.eclipse.jface.wizard.IWizardPage.isPageComplete方法的典型用法代码示例。如果您正苦于以下问题:Java IWizardPage.isPageComplete方法的具体用法?Java IWizardPage.isPageComplete怎么用?Java IWizardPage.isPageComplete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.wizard.IWizardPage
的用法示例。
在下文中一共展示了IWizardPage.isPageComplete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canFinish
import org.eclipse.jface.wizard.IWizardPage; //导入方法依赖的package包/类
@Override
public boolean canFinish() {
IWizardPage page = getContainer().getCurrentPage();
if (page instanceof TypeSelectionPage) {
TypeSelectionPage typePage = ((TypeSelectionPage) page);
if (typePage.isPageComplete())
return !typePage.canFlipToNextPage();
else
return false;
} else if (page instanceof ContainerSelectionPage)
return page.isPageComplete();
return false;
}
示例2: canFinish
import org.eclipse.jface.wizard.IWizardPage; //导入方法依赖的package包/类
/**
* This {@link IWizard} method is overridden by {@link ExtendedWizard}. If
* the current page is not complete, <code>false</code> is returned since
* finishing should usually not be enabled if the current page is
* incomplete. Otherwise, the subclass {@link #enableFinish(IWizardPage)}
* method is called to compute finish enablement.
*/
@Override
public boolean canFinish() {
final IWizardPage currentPage = getContainer().getCurrentPage();
if (currentPage != null) {
if (!currentPage.isPageComplete()) {
// if we're on any page that is not complete, can't finish
return false;
}
}
return enableFinish(currentPage);
}
示例3: enableNext
import org.eclipse.jface.wizard.IWizardPage; //导入方法依赖的package包/类
@Override
public boolean enableNext(final IWizardPage page) {
return page instanceof AddFilesWizardPage && page.isPageComplete();
}
示例4: enableFinish
import org.eclipse.jface.wizard.IWizardPage; //导入方法依赖的package包/类
@Override
protected boolean enableFinish(final IWizardPage currentPage) {
return currentPage.isPageComplete();
}