當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。