本文整理汇总了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();
}
示例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();
}
示例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 ();
}
}
示例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 ();
}
示例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();
}
示例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 );
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}