本文整理汇总了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$
}