当前位置: 首页>>代码示例>>Java>>正文


Java IWizard.getPage方法代码示例

本文整理汇总了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();
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:17,代码来源:WizardNewFilePage.java

示例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;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:21,代码来源:CreateDatabaseWizardPageJDBC.java

示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:17,代码来源:CreateDatabaseWizardPageJDBC.java

示例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;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:34,代码来源:CreateDatabaseWizardPage1.java

示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:34,代码来源:CreateDatabaseWizardPage1.java

示例6: getNextPage

import org.eclipse.jface.wizard.IWizard; //导入方法依赖的package包/类
public IWizardPage getNextPage()
{
	IWizard wiz = getWizard();
	return wiz.getPage("2"); //$NON-NLS-1$
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:6,代码来源:CreateDatabaseWizardPageSAPR3.java


注:本文中的org.eclipse.jface.wizard.IWizard.getPage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。