本文整理汇总了Java中org.eclipse.jface.wizard.WizardDialog.setBlockOnOpen方法的典型用法代码示例。如果您正苦于以下问题:Java WizardDialog.setBlockOnOpen方法的具体用法?Java WizardDialog.setBlockOnOpen怎么用?Java WizardDialog.setBlockOnOpen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.wizard.WizardDialog
的用法示例。
在下文中一共展示了WizardDialog.setBlockOnOpen方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void run() {
WizardDialog dialog = new WizardDialog(null, new Wizard() {
private HadoopLocationWizard page = new HadoopLocationWizard();
@Override
public void addPages() {
super.addPages();
setWindowTitle("New Hadoop location...");
addPage(page);
}
@Override
public boolean performFinish() {
page.performFinish();
return true;
}
});
dialog.create();
dialog.setBlockOnOpen(true);
dialog.open();
super.run();
}
示例2: runWithStructuredSelection
import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void runWithStructuredSelection(IStructuredSelection selection) {
IWorkbenchWizard wizard = getWizard(selection);
wizard.init(getWorkbench(), selection);
WizardDialog wizardDialog = new WizardDialog(getActiveShell(), wizard);
wizardDialog.setBlockOnOpen(true);
wizardDialog.open();
}
示例3: addElement
import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
protected ZooKeeperServerDescriptor addElement() {
ZooKeeperServerNewWizard serverWizard = new ZooKeeperServerNewWizard();
WizardDialog wizardDialog = new WizardDialog(getShell(), serverWizard);
wizardDialog.setBlockOnOpen(true);
if (wizardDialog.open() == Window.OK) {
return serverWizard.getServerDescriptor();
}
return null;
}
示例4: run
import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的package包/类
@Override
public void run() {
final HadoopServer server = serverView.getSelectedServer();
if (server == null)
return;
WizardDialog dialog = new WizardDialog(null, new Wizard() {
private HadoopLocationWizard page = new HadoopLocationWizard(server);
@Override
public void addPages() {
super.addPages();
setWindowTitle("Edit Hadoop location...");
addPage(page);
}
@Override
public boolean performFinish() {
page.performFinish();
return true;
}
});
dialog.create();
dialog.setBlockOnOpen(true);
dialog.open();
super.run();
}
示例5: openPageInWizardDialog
import org.eclipse.jface.wizard.WizardDialog; //导入方法依赖的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 );
}