List of usage examples for org.eclipse.jface.wizard IWizard getPage
IWizardPage getPage(String pageName);
From source file:be.ibridge.kettle.core.wizards.createdatabase.CreateDatabaseWizardPage1.java
License:LGPL
public IWizardPage getNextPage() { IWizard wiz = getWizard(); IWizardPage nextPage;/*w ww. j av a2 s.c om*/ switch (info.getAccessType()) { case DatabaseMeta.TYPE_ACCESS_OCI: nextPage = wiz.getPage("oci"); // OCI //$NON-NLS-1$ break; case DatabaseMeta.TYPE_ACCESS_ODBC: nextPage = wiz.getPage("odbc"); //$NON-NLS-1$ ; // ODBC break; case DatabaseMeta.TYPE_ACCESS_PLUGIN: nextPage = wiz.getPage(info.getDatabaseTypeDesc()); ; // e.g. SAPR3 break; default: // Generic or Native if (info.getDatabaseType() == DatabaseMeta.TYPE_DATABASE_GENERIC) { // Generic nextPage = wiz.getPage("generic"); //$NON-NLS-1$ ; // generic } else { // Native nextPage = wiz.getPage("jdbc"); //$NON-NLS-1$ if (nextPage != null) { // Set the port number... ((CreateDatabaseWizardPageJDBC) nextPage).setData(); } } break; } return nextPage; }
From source file:be.ibridge.kettle.core.wizards.createdatabase.CreateDatabaseWizardPageGeneric.java
License:LGPL
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage("2"); //$NON-NLS-1$ }
From source file:be.ibridge.kettle.core.wizards.createdatabase.CreateDatabaseWizardPageJDBC.java
License:LGPL
public IWizardPage getNextPage() { IWizard wiz = getWizard(); IWizardPage nextPage;/* w w w. j av a 2s. c o m*/ switch (info.getDatabaseType()) { case DatabaseMeta.TYPE_DATABASE_ORACLE: nextPage = wiz.getPage("oracle"); // Oracle //$NON-NLS-1$ break; case DatabaseMeta.TYPE_DATABASE_INFORMIX: nextPage = wiz.getPage("ifx"); // Informix //$NON-NLS-1$ break; default: nextPage = wiz.getPage("2"); // page 2 //$NON-NLS-1$ break; } return nextPage; }
From source file:ch.unibe.iam.scg.archie.ui.wizards.ChartWizardMainPage.java
License:Open Source License
/** * {@inheritDoc}/*from w w w . ja v a 2s . c o m*/ */ @Override public IWizardPage getNextPage() { IWizard wizard = this.getWizard(); return (this.pieItem.getSelection() ? wizard.getPage(PieChartPage.PAGE_NAME) : wizard.getPage(BarChartPage.PAGE_NAME)); }
From source file:com.aptana.editor.common.internal.scripting.WizardNewFilePage.java
License:Open Source License
protected InputStream getInitialContents() { IWizard wizard = getWizard(); TemplateSelectionPage templateSelectionPage = (TemplateSelectionPage) wizard .getPage(NewFileWizard.TEMPLATE_PAGE_NAME); if (wizard.getContainer().getCurrentPage() == templateSelectionPage) { String templateContent = NewFileWizard.getTemplateContent(templateSelectionPage.getSelectedTemplate(), getContainerFullPath().append(getFileName())); if (templateContent != null) { return new ReaderInputStream(new StringReader(templateContent), IOUtil.UTF_8); }//from w w w .ja v a2 s. c om } return super.getInitialContents(); }
From source file:com.nokia.carbide.cpp.uiq.ui.viewwizard.ViewWizardManager.java
License:Open Source License
public IWizardPage getPage(String pageName) { IWizardPage page = wizard.getPage(pageName); if ((page == null) && (wizard instanceof TemplateWizard)) { WizardSelectionPage wizardSelectionPage = ((TemplateWizard) wizard).getChooseTemplatePage(); IWizardNode selectedNode = wizardSelectionPage.getSelectedNode(); IWizard nodeWizard = selectedNode.getWizard(); page = nodeWizard.getPage(pageName); }/*from w w w . j ava2 s . c o m*/ return page; }
From source file:org.eclipse.gmf.internal.doc.ui.actions.OpenGraphWizardAction.java
License:Open Source License
public void run(String[] params, ICheatSheetManager manager) { final String modelName; if (params != null && params.length > 0) { modelName = params[0];//from www . j a v a2 s . com } else { modelName = "mindmap.gmfgraph"; } final IWizard wizard = new GMFGraphSimpleModelWizard(); if (wizard instanceof IWorkbenchWizard) { ((IWorkbenchWizard) wizard).init(PlatformUI.getWorkbench(), new StructuredSelection()); } WizardDialog dialog = new WizardDialog(Activator.getActiveWorkbenchShell(), wizard); dialog.create(); GMFGraphModelWizardNewFileCreationPage page = (GMFGraphModelWizardNewFileCreationPage) wizard .getPage("Whatever"); page.setFileName(modelName); dialog.getShell().setSize(Math.max(WIZARD_WIDTH, dialog.getShell().getSize().x), WIZARD_HEIGHT); dialog.open(); notifyResult(dialog.getReturnCode() == Dialog.OK); }
From source file:org.eclipse.gmf.internal.doc.ui.actions.OpenToolWizardAction.java
License:Open Source License
public void run(String[] params, ICheatSheetManager manager) { final String modelName; if (params != null && params.length > 0) { modelName = params[0];/* www.j ava 2s . c om*/ } else { modelName = "mindmap.gmftool"; } final IWizard wizard = new GMFToolSimpleModelWizard(); if (wizard instanceof IWorkbenchWizard) { ((IWorkbenchWizard) wizard).init(PlatformUI.getWorkbench(), new StructuredSelection()); } WizardDialog dialog = new WizardDialog(Activator.getActiveWorkbenchShell(), wizard); dialog.create(); GMFToolModelWizardNewFileCreationPage page = (GMFToolModelWizardNewFileCreationPage) wizard .getPage("Whatever"); page.setFileName(modelName); dialog.getShell().setSize(Math.max(WIZARD_WIDTH, dialog.getShell().getSize().x), WIZARD_HEIGHT); dialog.open(); notifyResult(dialog.getReturnCode() == Dialog.OK); }
From source file:org.kalypso.contribs.eclipse.jface.wizard.view.NavigationPanel.java
License:Open Source License
private boolean executeCommand(final String cmdString) { final NaviCommand command = parseCommand(cmdString); if (command == null) { final IWizard wizard = m_container.getWizard(); if (wizard == null) return false; final IWizardPage page = wizard.getPage(cmdString); if (page == null) return false; return m_container.showPageInternal(page); }//from ww w . j a v a2 s . c o m switch (command) { case prev: return m_container.doPrev(); case next: return m_container.doNext(); case finish: return m_container.doFinish(); case cancel: return m_container.doCancel(); default: return false; } }
From source file:org.pentaho.di.ui.core.database.wizard.CreateDatabaseWizardPage1.java
License:Apache License
public IWizardPage getNextPage() { IWizard wiz = getWizard(); IWizardPage nextPage;// w w w. ja va2 s. com switch (databaseMeta.getAccessType()) { case DatabaseMeta.TYPE_ACCESS_OCI: nextPage = wiz.getPage("oci"); // OCI break; case DatabaseMeta.TYPE_ACCESS_ODBC: nextPage = wiz.getPage("odbc"); // ODBC break; case DatabaseMeta.TYPE_ACCESS_PLUGIN: nextPage = wiz.getPage(databaseMeta.getPluginId()); // e.g. SAPR3 break; default: // Generic or Native if (databaseMeta.getDatabaseInterface() instanceof GenericDatabaseMeta) { // Generic nextPage = wiz.getPage("generic"); // generic } else { // Native nextPage = wiz.getPage("jdbc"); if (nextPage != null) { // Set the port number... ((CreateDatabaseWizardPageJDBC) nextPage).setData(); } } break; } return nextPage; }