this.blockDevInfo1 = blockDevInfo1;
this.blockDevInfo2 = blockDevInfo2;
}
public void showDialogs() {
WizardDialog dialog;
if (!globalInfo.getDrbdResources().isEmpty() && globalInfo.atLeastVersion("8.4")) {
startDialog.init(null, blockDevInfo1, blockDevInfo2);
dialog = startDialog;
} else {
final List<BlockDevInfo> blockDevices = new ArrayList<BlockDevInfo>(Arrays.asList(blockDevInfo1,
blockDevInfo2));
final ResourceInfo resourceInfo = globalInfo.getNewDrbdResource(
VolumeInfo.getHostsFromBlockDevices(blockDevices));
final VolumeInfo dvi = globalInfo.getNewDrbdVolume(resourceInfo, blockDevices);
resourceInfo.addDrbdVolume(dvi);
globalInfo.addDrbdResource(resourceInfo);
application.invokeAndWait(new Runnable() {
@Override
public void run() {
globalInfo.addDrbdVolume(dvi);
}
});
resourceDialog.init(null, dvi);
dialog = resourceDialog;
}
guiData.expandTerminalSplitPane(GUIData.TerminalSize.EXPAND);
while (true) {
LOG.debug1("showDialogs: dialog: " + dialog.getClass().getName());
final WizardDialog newdialog = (WizardDialog) dialog.showDialog();
if (dialog.isPressedCancelButton()) {
dialog.cancelDialog();
wizardCanceled = true;
guiData.expandTerminalSplitPane(GUIData.TerminalSize.COLLAPSE);
if (newdialog == null) {