本文整理匯總了Java中org.eclipse.jface.wizard.IWizard.getPage方法的典型用法代碼示例。如果您正苦於以下問題:Java IWizard.getPage方法的具體用法?Java IWizard.getPage怎麽用?Java IWizard.getPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.jface.wizard.IWizard
的用法示例。
在下文中一共展示了IWizard.getPage方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getInitialContents
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
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();
}
示例2: getNextPage
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
public IWizardPage getNextPage()
{
IWizard wiz = getWizard();
IWizardPage nextPage;
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;
}
示例3: getNextPage
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
public IWizardPage getNextPage()
{
IWizard wiz = getWizard();
IWizardPage nextPage;
if (databaseMeta.getDatabaseInterface() instanceof OracleDatabaseMeta) {
nextPage = wiz.getPage("oracle"); // Oracle //$NON-NLS-1$
} else if (databaseMeta.getDatabaseInterface() instanceof InformixDatabaseMeta) {
nextPage = wiz.getPage("ifx"); // Informix //$NON-NLS-1$
} else
{
nextPage = wiz.getPage("2"); // page 2 //$NON-NLS-1$
}
return nextPage;
}
示例4: getNextPage
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
public IWizardPage getNextPage()
{
IWizard wiz = getWizard();
IWizardPage nextPage;
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");; // ODBC //$NON-NLS-1$
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");; // generic //$NON-NLS-1$
} else { // Native
nextPage = wiz.getPage("jdbc"); //$NON-NLS-1$
if (nextPage!=null)
{
// Set the port number...
((CreateDatabaseWizardPageJDBC)nextPage).setData();
}
}
break;
}
return nextPage;
}
示例5: getNextPage
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
public IWizardPage getNextPage()
{
IWizard wiz = getWizard();
IWizardPage nextPage;
switch(databaseMeta.getAccessType())
{
case DatabaseMeta.TYPE_ACCESS_OCI:
nextPage = wiz.getPage("oci"); // OCI //$NON-NLS-1$
break;
case DatabaseMeta.TYPE_ACCESS_ODBC:
nextPage = wiz.getPage("odbc");; // ODBC //$NON-NLS-1$
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 //$NON-NLS-1$
} else { // Native
nextPage = wiz.getPage("jdbc"); //$NON-NLS-1$
if (nextPage!=null)
{
// Set the port number...
((CreateDatabaseWizardPageJDBC)nextPage).setData();
}
}
break;
}
return nextPage;
}
示例6: getNextPage
import org.eclipse.jface.wizard.IWizard; //導入方法依賴的package包/類
public IWizardPage getNextPage()
{
IWizard wiz = getWizard();
return wiz.getPage("2"); //$NON-NLS-1$
}