@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); }
@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."); }
@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."); }
@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; }
@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; }
@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(); }
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); }
@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; }
@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(); }
@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(); }
@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); } } }
/** * <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()); } }
@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; }
@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; }
@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; }
public boolean canFinish() { IWizardPage page = getContainer().getCurrentPage(); if (page == checkoutAsMultiplePage || page == projectPage) { return projectPage.isPageComplete(); } if (page == checkoutAsWithoutProjectFilePage) { if (checkoutAsWithoutProjectFilePage.useWizard()) return true; else return checkoutAsWithoutProjectFilePage.isPageComplete() && projectPage.isPageComplete(); } if (page == checkoutAsWithProjectFilePage) { return checkoutAsWithProjectFilePage.isPageComplete() && projectPage.isPageComplete(); } if (page == selectionPage || page instanceof SVNRepositoryProviderWizardPage) { return selectionPage.isPageComplete(); } return super.canFinish(); }
@Override public IWizardPage getNextPage() { // Set config variables before going next page. setConfigVariables(); // If next button clicked, open a dialog and start // authorization check. if (nextPageEventType == NextPageEventType.NEXT_BUTTON_CLICK) { openConnectionCheckDialog(getShell()); } // Everytime this method runs, event type should be set to // NEXT_BUTTON_CLICK // otherwise we can never catch the real click to next button. nextPageEventType = NextPageEventType.NEXT_BUTTON_CLICK; // goNextPage is the result of authorization check, // if we can authorize then go to next page // else do not allow. if (goNextPage == true) { return super.getNextPage(); } else { return this; } }
@Override public IWizardPage getNextPage() { if (userPassBtn.getSelection()) { config.setAhenkAccessMethod(AccessMethod.USERNAME_PASSWORD); config.setUsernameCm(userNameTxt.getText()); config.setPasswordCm(passwordTxt.getText()); } else { config.setAhenkAccessMethod(AccessMethod.PRIVATE_KEY); config.setPrivateKeyAbsPath(fileDialogText.getText()); if (!"".equals(passphraseTxt.getText()) && passphraseTxt.getText() != null) { config.setPassphrase(passphraseTxt.getText()); } } config.setPort( portTxt.getText() != null && !portTxt.getText().isEmpty() ? new Integer(portTxt.getText()) : null); return super.getNextPage(); }
@Override public IWizardPage getNextPage() { LinkedList<IWizardPage> pagesList = ((AhenkSetupWizard) this.getWizard()).getPagesList(); if (this.btnNetworkScan.getSelection()) { if (!AhenkNetworkScanPage.class.getName().equals(pagesList.get(1).getName())) { AhenkNetworkScanPage secondPage = new AhenkNetworkScanPage(config); secondPage.setWizard(getWizard()); pagesList.add(1, secondPage); } } else if (AhenkNetworkScanPage.class.getName().equals(pagesList.get(1).getName())) { pagesList.remove(1); } if (btnLocal.getSelection()) { // Create IP list for config List<String> remoteIpList = new ArrayList<String>(); remoteIpList.add("localhost"); config.setIpList(remoteIpList); } return super.getNextPage(); }
/** * 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); } } }
@Override public IWizardPage getPreviousPage(IWizardPage page) { if (page == comparePage) { return exportPage; } if (page == toolRunnerPage) { if (hasRequiredJsonMerge()) return comparePage; else return exportPage; } return super.getPreviousPage(page); }
@Override public boolean canFinish() { IWizardPage curPage = getContainer().getCurrentPage(); if (curPage == processOutputPage) return true; if (curPage == configOutputPage && !configOutputPage.getConfig().isGeneratingSomething()) return true; return false; }
@Override public IWizardPage getNextPage(IWizardPage page) { if (page == _askProjectNamePage) { int index = _askProjectNamePage.getProjectName().indexOf(".xdsml"); if(index != -1){ _askLanguageNamePage.setLanguageName(_askProjectNamePage.getProjectName().substring(0, index)); } else{ _askLanguageNamePage.setLanguageName(_askProjectNamePage.getProjectName()); } } return super.getNextPage(page); }
@Override public IWizardPage getNextPage() { final IWizardPage res; if (selected == CREATE_VIEWPOINT_DEFINITION) { res = newGemocDebugRepresentationWizard.getNewViewPointProjectPage(); } else if (selected == CREATE_VIEWPOINT_EXTENSION || selected == ADD_DEBUG_LAYER) { res = newGemocDebugRepresentationWizard.getSelectDiagramDefinitionPage(); } else { res = null; } return res; }
@Override public IWizardPage getNextPage() { if (isPageComplete()) { createBean(); setInfoBeanName(); } return super.getNextPage(); }
public void showNextPage() { if (isPageComplete()) { createBean(); setInfoBeanName(); IWizardPage page = getNextPage(); if ((page != null) && isPageComplete()) { getWizard().getContainer().showPage(page); } } }
public IWizardPage getNextPage() { try { DatabaseObject dbo = ((ComponentExplorerWizardPage)getWizard().getPage("ComponentExplorerWizardPage")).getCreatedBean(); /*if (dbo instanceof XMLTable) { return getWizard().getPage("XMLTableWizardPage"); } else if (dbo instanceof JavelinConnector) { return getWizard().getPage("EmulatorTechnologyWizardPage"); } else if (dbo instanceof ProjectSchemaReference) { return getWizard().getPage("ProjectSchemaWizardPage"); } else if (dbo instanceof RestServiceReference) { return getWizard().getPage("RestServiceWizardPage"); } else if (dbo instanceof WebServiceReference) { return getWizard().getPage("WebServiceWizardPage"); } else if (dbo instanceof WsdlSchemaReference) { return getWizard().getPage("WsdlSchemaFileWizardPage"); } else if (dbo instanceof XsdSchemaReference) { return getWizard().getPage("XsdSchemaFileWizardPage"); } else if (dbo instanceof SqlTransaction){ return getWizard().getPage("SQLQueriesWizardPage"); } else if (dbo instanceof UrlMapping){ return getWizard().getPage("UrlMappingWizardPage"); }*/ } catch (NullPointerException e) { return null; } return null; }
public IWizardPage getNextPage() { try { DatabaseObject dbo = ((ObjectExplorerWizardPage)getWizard().getPage("ObjectExplorerWizardPage")).getCreatedBean(); if (dbo instanceof XMLTable) { return getWizard().getPage("XMLTableWizardPage"); } else if (dbo instanceof JavelinConnector) { return getWizard().getPage("EmulatorTechnologyWizardPage"); } else if (dbo instanceof ProjectSchemaReference) { return getWizard().getPage("ProjectSchemaWizardPage"); } else if (dbo instanceof RestServiceReference) { return getWizard().getPage("RestServiceWizardPage"); } else if (dbo instanceof WebServiceReference) { return getWizard().getPage("WebServiceWizardPage"); } else if (dbo instanceof WsdlSchemaReference) { return getWizard().getPage("WsdlSchemaFileWizardPage"); } else if (dbo instanceof XsdSchemaReference) { return getWizard().getPage("XsdSchemaFileWizardPage"); } else if (dbo instanceof SqlTransaction){ return getWizard().getPage("SQLQueriesWizardPage"); } else if (dbo instanceof UrlMapping){ return getWizard().getPage("UrlMappingWizardPage"); } } catch (NullPointerException e) { return null; } return null; }
@Override public boolean canFinish() { IWizardPage nextPage = getPage("SQLQueriesWizardPage"); if (nextPage!=null) { return (getContainer().getCurrentPage().getNextPage() == getPage("SQLQueriesWizardPage") || getContainer().getCurrentPage().getNextPage() == null && getContainer().getCurrentPage().isPageComplete()); } else { return (getContainer().getCurrentPage().getNextPage() == null && getContainer().getCurrentPage().isPageComplete()); } }
public IWizardPage getNextPage() { try { if (((StatementGeneratorWizardPage)getWizard().getPage("ObjectExplorerWizardPage")).getCreatedBean() instanceof XMLTable) return getWizard().getPage("XMLTableWizardPage"); } catch (NullPointerException e) { return null; } return null; }
@Override public IWizardPage getNextPage(IWizardPage page) { if (fileChooserPage.equals(page)) { String defaultProjectName = getDefaultProjectName(); if (defaultProjectName != null) { projectNameChooserPage.setProjectTextValue(defaultProjectName); } } return super.getNextPage(page); }
@Override public IWizardPage getNextPage(IWizardPage curr) { if (curr == page) { dPage.setContainerName(page.getContainerName()); dPage.refreshDef(); dPage.getRoot().layout(); return dPage; } else { return null; } }
@Override public IWizardPage getNextPage(IWizardPage curr) { if (curr == page) { dPage.setContainerName(page.getContainerName()); dPage.refreshAssmbl(); dPage.refreshLsys(); dPage.getRoot().layout(); return dPage; } else { return null; } }
@Override public IWizardPage getNextPage(IWizardPage page) { IWizardPage p = super.getNextPage(page); if (page instanceof GW4ETemplatePage) { IJavaProject newElement = javaPage.getJavaProject(); fMavenPage.setProject(newElement.getProject()); } return p; }
@Override public IWizardPage getPreviousPage(IWizardPage page) { if (this.isSkipToSummary()) { return null; } return super.getPreviousPage(page); }