本文整理汇总了Java中org.eclipse.jface.wizard.IWizardPage类的典型用法代码示例。如果您正苦于以下问题:Java IWizardPage类的具体用法?Java IWizardPage怎么用?Java IWizardPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IWizardPage类属于org.eclipse.jface.wizard包,在下文中一共展示了IWizardPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage(IWizardPage page) {
if (page == exportPage) {
if (hasRequiredJsonMerge())
return comparePage;
else if (runTools())
return toolRunnerPage;
}
if (page == comparePage) {
if (runTools())
return toolRunnerPage;
}
return super.getNextPage(page);
}
示例2: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage(IWizardPage page) {
if (page == configAdocPage) {
if (configAdocPage.getConfig().genAdoc)
return processAdocPage;
return configOutputPage;
}
if (page == processAdocPage) {
if (getSpecChangeSet() == null || getSpecChangeSet().isEmpty())
return configOutputPage;
return comparePage;
}
if (page == comparePage) {
return summaryPage;
}
if (page == summaryPage) {
return configOutputPage;
}
if (page == configOutputPage) {
return processOutputPage;
}
if (page == processOutputPage) {
return null;
}
throw new RuntimeException("Missing page successor.");
}
示例3: getPreviousPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getPreviousPage(IWizardPage page) {
if (page == configAdocPage) {
return null;
}
if (page == processAdocPage) {
return configAdocPage;
}
if (page == comparePage) {
return processAdocPage;
}
if (page == summaryPage) {
return comparePage;
}
if (page == configOutputPage) {
if (!configAdocPage.getConfig().genAdoc)
return configAdocPage;
if (getSpecChangeSet() == null || getSpecChangeSet().isEmpty())
return processAdocPage;
return summaryPage;
}
if (page == processOutputPage) {
return null;
}
throw new RuntimeException("Missing page predecessor.");
}
示例4: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage() {
final IWizardPage res;
if (newGemocDebugRepresentationWizard
.getDebugRepresentationSelectionPage().getSelected() == DebugRepresentationSelectionPage.CREATE_VIEWPOINT_EXTENSION) {
res = newGemocDebugRepresentationWizard
.getNewViewPointProjectPage();
} else if (newGemocDebugRepresentationWizard
.getDebugRepresentationSelectionPage().getSelected() == DebugRepresentationSelectionPage.ADD_DEBUG_LAYER) {
res = newGemocDebugRepresentationWizard
.getAddDebugRepresentationPage();
} else {
res = null;
}
return res;
}
示例5: getWizard
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizard getWizard() {
SetupWizard wizard = (SetupWizard) super.getWizard();
wizard.postRegisterState(this.getClass().getSimpleName().toLowerCase());
StringBuffer summary = new StringBuffer();
for (IWizardPage page : wizard.getPages()) {
if (page instanceof SummaryGenerator) {
summary.append(((SummaryGenerator) page).getSummary() + "\n");
}
}
summaryText.setText(summary.toString());
setPageComplete(true);
return wizard;
}
示例6: getWizard
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizard getWizard() {
IWizardPage previousPage = getPreviousPage();
setErrorMessage(null);
setMessage(getDescription());
SetupWizard wizard = (SetupWizard) super.getWizard();
wizard.postRegisterState(this.getClass().getSimpleName().toLowerCase());
if (previousPage instanceof RegistrationPage) {
RegistrationPage registrationPage = (RegistrationPage) previousPage;
if (registrationPage.isConnected()) {
if (registrationPage.register(this)) {
infoLink.setText("Online registration in progress, please wait…");
}
} else {
infoLink.setText("Studio offline. Please register manually on " + RegistrationPage.registrationLink + " and paste your PSC here.");
setErrorMessage("Studio offline! Check your proxy settings");
}
} else {
infoLink.setText("Please paste your previous PSC here and click the 'Next >' button...");
}
infoLink.getParent().layout();
return super.getWizard();
}
示例7: dialogChanged
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
private void dialogChanged() {
String servCode = buildServiceCode();
if (servCode.length() == 0) {
updateStatus("Connection address must be specified");
return;
}
IWizardPage wp = getWizard().getPage("ObjectExplorerWizardPage");
if (wp != null) {
try {
DatabaseObject dbo = ((ObjectExplorerWizardPage)wp).getCreatedBean();
if (dbo != null) {
if (dbo instanceof JavelinConnector)
((JavelinConnector)dbo).setServiceCode(servCode);
}
} catch (NullPointerException e) {
updateStatus("New bean has not been instantiated");
return;
}
} else {
setServiceCode(servCode);
}
updateStatus(null);
}
示例8: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage(IWizardPage page) {
IWizardPage p = super.getNextPage(page);
if (page instanceof ConvertToResourceUIPage) {
if (resourcePage.isOfflineBasedCheckbox()) {
String name=resourceUIPage.getFileName();
offlinePage.setTarget(resourceUIPage.getContainerFullPath(),name);
return offlinePage;
} else {
return gwTestUIPage;
}
}
if (page instanceof OfflineGW4ETestUIPage) {
return null;
}
return p;
}
示例9: nextPressed
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
protected void nextPressed() {
IWizardPage currentActivePage = getCurrentPage();
/* notify current page if it wants to do any validation on input */
try {
if (!((GenerationWizardPage) currentActivePage).nextPressed())
return;
} catch (Exception e) {
GenerationWizard wizard = (GenerationWizard) getWizard();
wizard.getConverter().onException(e);
}
/* delegate nextPressed processing to super */
super.nextPressed();
}
示例10: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage() {
TableItem[] items = tblVwrSetup.getTable().getItems();
List<String> selectedIpList = new ArrayList<String>();
for (int i = 0; i < items.length; i++) {
if (items[i].getChecked()) {
selectedIpList.add(items[i].getText());
}
}
config.setIpList(selectedIpList);
return super.getNextPage();
}
示例11: previousPageSet
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public void previousPageSet(final IWizardPage currentPage, final IWizardPage previousPage) {
// if the current page is the selection page, we may want to "fix" the
// previous page
if (currentPage != null && selectionPage != null && currentPage.getName().equals(selectionPage.getName())) {
// Check if the previous page is something other than the server
// selection page
if (previousPage != null && !previousPage.getName().equals(WizardServerSelectionPage.PAGE_NAME)) {
// If so, propagate the previous page to the server selection
// page and set the selection page to point to the server
// selection page
serverSelectionPage.setPreviousPage(previousPage);
selectionPage.setPreviousPage(serverSelectionPage);
}
}
}
示例12: setVisible
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
/**
* <p>
* {@link ExtendedWizardPage} overrides this {@link IWizardPage} method. It
* uses <code>setVisible()</code> as a hook point to perform some additional
* tasks when the page is shown or hidden. When the page is shown,
* {@link #refresh()} is called to give the {@link ExtendedWizardPage}
* subclass a chance to refresh page state. When the page is hidden,
* {@link #onMovingToPreviousPage()} is called if navigating to the previous
* page, and {@link #saveState(IDialogSettings)} is called to give the
* subclass a chance to persist state.
* </p>
*
* <p>
* {@link ExtendedWizardPage} subclasses typically will not override this
* method.
* </p>
*/
@Override
public void setVisible(final boolean visible) {
/*
* The DialogPage setVisible implementation just calls setVisible on the
* control (getControl()) with the argument.
*/
super.setVisible(visible);
if (visible) {
final IWizardPage previousPage = getPreviousPage();
if (previousPage != null && previousPage.getControl() != null) {
previousPage.setVisible(false);
}
refresh();
} else {
final IWizardPage curPage = getContainer().getCurrentPage();
final IWizardPage prevPage = getPreviousPage();
if (curPage == prevPage) {
onMovingToPreviousPage();
}
saveState(getDialogSettings());
}
}
示例13: getNextPage
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public IWizardPage getNextPage(final IWizardPage page) {
final IWizardPage nextConnectionPage = getNextConnectionPage();
if (nextConnectionPage != null) {
if (!nextConnectionPage.getName().equals(getSelectionPageName()) || !skipCrossSelectionPage()) {
return nextConnectionPage;
}
}
if (!hasPageData(Workspace.class)) {
return getPage(ImportWizardWorkspacePage.PAGE_NAME);
}
if (!hasPageData(ImportItemCollectionBase.class)) {
return getPage(TfsImportWizardTreePage.PAGE_NAME);
}
if (TfsImportWizardTreePage.PAGE_NAME.equals(page.getName())) {
return getPage(TfsImportWizardConfirmationPage.PAGE_NAME);
}
return null;
}
示例14: enableNext
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public boolean enableNext(final IWizardPage currentPage) {
if (!enableNextConnectionPage(currentPage)) {
return false;
}
if (ShareWizardSingleProjectConfirmationPage.PAGE_NAME.equals(currentPage.getName())) {
return false;
}
if (ShareWizardMultipleProjectConfirmationPage.PAGE_NAME.equals(currentPage.getName())) {
return false;
}
return true;
}
示例15: enableNext
import org.eclipse.jface.wizard.IWizardPage; //导入依赖的package包/类
@Override
public boolean enableNext(final IWizardPage currentPage) {
if (!enableNextConnectionPage(currentPage)) {
return false;
}
/*
* Override super's behavior, if the current page is the team project
* page, we don't want next to occur (hide the workspace page)
*/
if (getSelectionPageName().equals(currentPage.getName())) {
return false;
}
return true;
}