本文整理匯總了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();
}