本文整理匯總了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 );
}