Java Code Examples for org.eclipse.jface.wizard.IWizard#getPage()
The following examples show how to use
org.eclipse.jface.wizard.IWizard#getPage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WizardNewFilePage.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
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); } } return super.getInitialContents(); }
Example 2
Source File: CreateDatabaseWizardPageJDBC.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); IWizardPage nextPage; if ( databaseMeta.getDatabaseInterface() instanceof OracleDatabaseMeta ) { nextPage = wiz.getPage( "oracle" ); // Oracle } else if ( databaseMeta.getDatabaseInterface() instanceof InformixDatabaseMeta ) { nextPage = wiz.getPage( "ifx" ); // Informix } else { nextPage = wiz.getPage( "2" ); // page 2 } return nextPage; }
Example 3
Source File: CreateDatabaseWizardPage1.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); IWizardPage nextPage; 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; }
Example 4
Source File: CreateDatabaseWizardPageOracle.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }
Example 5
Source File: CreateDatabaseWizardPageGeneric.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }
Example 6
Source File: CreateDatabaseWizardPageInformix.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }
Example 7
Source File: CreateDatabaseWizardPageODBC.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }
Example 8
Source File: CreateDatabaseWizardPageOCI.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }
Example 9
Source File: CreateDatabaseWizardPageSAPR3.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public IWizardPage getNextPage() { IWizard wiz = getWizard(); return wiz.getPage( "2" ); }