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


Java Wizard.addPage方法代码示例

本文整理汇总了Java中org.eclipse.jface.wizard.Wizard.addPage方法的典型用法代码示例。如果您正苦于以下问题:Java Wizard.addPage方法的具体用法?Java Wizard.addPage怎么用?Java Wizard.addPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.wizard.Wizard的用法示例。


在下文中一共展示了Wizard.addPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_SEQUENTIAL_EXTENDED_LANGUAGE);
	page.setTitle(WizardTemplateMessages.SequentialExtendedLanguageTemplate_title);
	page.setDescription(WizardTemplateMessages.SequentialExtendedLanguageTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:8,代码来源:SequentialExtendedLanguageTemplate.java

示例2: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_SEQUENTIAL_SINGLE_LANGUAGE);
	page.setTitle(WizardTemplateMessages.SequentialSingleLanguageTemplate_title);
	page.setDescription(WizardTemplateMessages.SequentialSingleLanguageTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:8,代码来源:SequentialSingleLanguageTemplate.java

示例3: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
@Override
public void addPages ( final Wizard wizard )
{
    if ( this.id == null )
    {
        final WizardPage page = createPage ( 0, IHelpContextIds.TEMPLATE_DETAIL_VIEW );
        page.setTitle ( Messages.DetailViewTemplate_Page_Title );
        page.setDescription ( Messages.DetailViewTemplate_Page_Description );
        wizard.addPage ( page );
        markPagesAdded ();
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:13,代码来源:DetailViewTemplate.java

示例4: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
@Override
public void addPages ( final Wizard wizard )
{
    final WizardPage page = createPage ( 0, IHelpContextIds.TEMPLATE_CONNECTION );
    page.setTitle ( "Connection" );
    page.setDescription ( "Connection options" );
    wizard.addPage ( page );
    markPagesAdded ();
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:10,代码来源:ConnectionContextTemplate.java

示例5: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_SIMPLE_MT_MELANGE);
	page.setTitle(MelangeTemplateMessages.SimpleMTTemplate_title);
	page.setDescription(MelangeTemplateMessages.SimpleMTTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:8,代码来源:SimpleMTTemplate.java

示例6: openPageInWizardDialog

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
private void openPageInWizardDialog() {
  Wizard wizard = new Wizard() {
    @Override
    public boolean performFinish() {
      return true;
    }
  };
  WizardDialog wizardDialog = new WizardDialog( displayHelper.createShell(), wizard );
  wizard.setContainer( wizardDialog );
  wizard.addPage( page );
  page.setWizard( wizard );
  wizardDialog.setBlockOnOpen( false );
  wizardDialog.open();
  wizardDialog.showPage( page );
}
 
开发者ID:rherrmann,项目名称:eclipse-extras,代码行数:16,代码来源:DynamicWorkingSetPagePDETest.java

示例7: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
@Override
public void addPages(Wizard wizard) {
	addOptions();

	WizardPage page = new OptionTemplateWizardPage(this, new ArrayList<TemplateOption>(options.keySet()), null);
	page.setTitle(template.getName());
	pages.add(page);
	wizard.addPage(page);

	validateOptions(null);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:12,代码来源:ProjectTemplateSection.java

示例8: copyTableWizard

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
/**
 * Create a transformation that extracts tables & data from a database.
 * <p>
 * <p>
 * 
 * 0) Select the database to rip
 * <p>
 * 1) Select the table in the database to copy
 * <p>
 * 2) Select the database to dump to
 * <p>
 * 3) Select the repository directory in which it will end up
 * <p>
 * 4) Select a name for the new transformation
 * <p>
 * 6) Create 1 transformation for the selected table
 * <p>
 */
public void copyTableWizard() {
	List<DatabaseMeta> databases = getActiveDatabases();
	if (databases.size() == 0)
		return; // Nothing to do here

	final CopyTableWizardPage1 page1 = new CopyTableWizardPage1("1", databases);
	page1.createControl(shell);
	final CopyTableWizardPage2 page2 = new CopyTableWizardPage2("2");
	page2.createControl(shell);

	Wizard wizard = new Wizard() {
		public boolean performFinish() {
			return delegates.db.copyTable(page1.getSourceDatabase(), page1.getTargetDatabase(), page2.getSelection());
		}

		/**
		 * @see org.eclipse.jface.wizard.Wizard#canFinish()
		 */
		public boolean canFinish() {
			return page2.canFinish();
		}
	};

	wizard.addPage(page1);
	wizard.addPage(page2);

	WizardDialog wd = new WizardDialog(shell, wizard);
	WizardDialog.setDefaultImage(GUIResource.getInstance().getImageWizard());
	wd.setMinimumPageSize(700, 400);
	wd.updateSize();
	wd.open();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:51,代码来源:Spoon.java

示例9: copyTableWizard

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
/**
 * Create a transformation that extracts tables & data from a database.
 * <p>
 * <p>
 * 
 * 0) Select the database to rip
 * <p>
 * 1) Select the table in the database to copy
 * <p>
 * 2) Select the database to dump to
 * <p>
 * 3) Select the repository directory in which it will end up
 * <p>
 * 4) Select a name for the new transformation
 * <p>
 * 6) Create 1 transformation for the selected table
 * <p>
 */
public void copyTableWizard() {
  List<DatabaseMeta> databases = getActiveDatabases();
  if (databases.size() == 0)
    return; // Nothing to do here

  final CopyTableWizardPage1 page1 = new CopyTableWizardPage1("1", databases);
  page1.createControl(shell);
  final CopyTableWizardPage2 page2 = new CopyTableWizardPage2("2");
  page2.createControl(shell);

  Wizard wizard = new Wizard() {
    public boolean performFinish() {
      return delegates.db.copyTable(page1.getSourceDatabase(), page1.getTargetDatabase(), page2.getSelection());
    }

    /**
     * @see org.eclipse.jface.wizard.Wizard#canFinish()
     */
    public boolean canFinish() {
      return page2.canFinish();
    }
  };

  wizard.addPage(page1);
  wizard.addPage(page2);

  WizardDialog wd = new WizardDialog(shell, wizard);
  WizardDialog.setDefaultImage(GUIResource.getInstance().getImageWizard());
  wd.setMinimumPageSize(700, 400);
  wd.updateSize();
  wd.open();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:51,代码来源:Spoon.java

示例10: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_MINI_ECORE_ASPECT_SAMPLE);
	page.setTitle(K3TemplateMessages.MiniEcoreAspectSampleTemplate_title);
	page.setDescription(K3TemplateMessages.MiniEcoreAspectSampleTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:8,代码来源:MiniEcoreAspectSampleTemplate.java

示例11: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_ECORE_ASPECT);
	page.setTitle(K3TemplateMessages.UserEcoreBasicAspectTemplate_title);
	page.setDescription(K3TemplateMessages.UserEcoreBasicAspectTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:8,代码来源:UserEcoreBasicAspectTemplate.java

示例12: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_MINI_ASPECT_SAMPLE);
	page.setTitle(K3TemplateMessages.MiniAspectSampleTemplate_title);
	page.setDescription(K3TemplateMessages.MiniAspectSampleTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:8,代码来源:MiniAspectSampleTemplate.java

示例13: addPages

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
@Override
public void addPages(Wizard wizard) {
	WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_ECORE_ASPECT_WITH_MELANGE);
	page.setTitle(K3TemplateMessages.UserEcoreBasicAspectWithMelangeTemplate_title);
	page.setDescription(K3TemplateMessages.UserEcoreBasicAspectWithMelangeTemplate_desc);
	wizard.addPage(page);
	markPagesAdded();
}
 
开发者ID:diverse-project,项目名称:k3,代码行数:9,代码来源:UserEcoreBasicAspectWithMelangeTemplate.java

示例14: copyTableWizard

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
/**
 * Create a transformation that extracts tables & data from a database.
 * <p>
 * <p>
 *
 * 0) Select the database to rip
 * <p>
 * 1) Select the table in the database to copy
 * <p>
 * 2) Select the database to dump to
 * <p>
 * 3) Select the repository directory in which it will end up
 * <p>
 * 4) Select a name for the new transformation
 * <p>
 * 6) Create 1 transformation for the selected table
 * <p>
 */
public void copyTableWizard() {
  List<DatabaseMeta> databases = getActiveDatabases();
  if ( databases.size() == 0 ) {
    return; // Nothing to do here
  }

  final CopyTableWizardPage1 page1 = new CopyTableWizardPage1( "1", databases );
  final CopyTableWizardPage2 page2 = new CopyTableWizardPage2( "2" );

  Wizard wizard = new Wizard() {
    @Override
    public boolean performFinish() {
      return delegates.db.copyTable( page1.getSourceDatabase(), page1.getTargetDatabase(), page2.getSelection() );
    }

    /**
     * @see org.eclipse.jface.wizard.Wizard#canFinish()
     */
    @Override
    public boolean canFinish() {
      return page2.canFinish();
    }
  };

  wizard.addPage( page1 );
  wizard.addPage( page2 );

  WizardDialog wd = new WizardDialog( shell, wizard );
  WizardDialog.setDefaultImage( GUIResource.getInstance().getImageWizard() );
  wd.setMinimumPageSize( 700, 400 );
  wd.updateSize();
  wd.open();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:52,代码来源:Spoon.java

示例15: ripDBWizard

import org.eclipse.jface.wizard.Wizard; //导入方法依赖的package包/类
/**
 * Create a job that extracts tables & data from a database.
 * <p>
 * <p>
 * 
 * 0) Select the database to rip
 * <p>
 * 1) Select the tables in the database to rip
 * <p>
 * 2) Select the database to dump to
 * <p>
 * 3) Select the repository directory in which it will end up
 * <p>
 * 4) Select a name for the new job
 * <p>
 * 5) Create an empty job with the selected name.
 * <p>
 * 6) Create 1 transformation for every selected table
 * <p>
 * 7) add every created transformation to the job & evaluate
 * <p>
 * 
 */
public void ripDBWizard()
{
	final List<DatabaseMeta> databases = spoon.getActiveDatabases();
	if (databases.size() == 0)
		return; // Nothing to do here

	final RipDatabaseWizardPage1 page1 = new RipDatabaseWizardPage1("1", databases); //$NON-NLS-1$
	page1.createControl(spoon.getShell());
	final RipDatabaseWizardPage2 page2 = new RipDatabaseWizardPage2("2"); //$NON-NLS-1$
	page2.createControl(spoon.getShell());
	final RipDatabaseWizardPage3 page3 = new RipDatabaseWizardPage3("3", spoon.getRepository()); //$NON-NLS-1$
	page3.createControl(spoon.getShell());

	Wizard wizard = new Wizard()
	{
		public boolean performFinish()
		{
			JobMeta jobMeta = ripDB(databases, page3.getJobname(), page3.getRepositoryDirectory(), page3
					.getDirectory(), page1.getSourceDatabase(), page1.getTargetDatabase(), page2
					.getSelection());
			if (jobMeta == null)
				return false;

			if (page3.getRepositoryDirectory() != null)
			{
				spoon.saveToRepository(jobMeta);
			} else
			{
				spoon.saveToFile(jobMeta);
			}

			addJobGraph(jobMeta);
			return true;
		}

		/**
		 * @see org.eclipse.jface.wizard.Wizard#canFinish()
		 */
		public boolean canFinish()
		{
			return page3.canFinish();
		}
	};

	wizard.addPage(page1);
	wizard.addPage(page2);
	wizard.addPage(page3);

	WizardDialog wd = new WizardDialog(spoon.getShell(), wizard);
	WizardDialog.setDefaultImage(GUIResource.getInstance().getImageWizard());
	wd.setMinimumPageSize(700, 400);
   wd.updateSize();
	wd.open();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:78,代码来源:SpoonJobDelegate.java


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