* is called.
*/
@Override
public WizardDialog nextDialog() {
if (getDrbdVolumeInfo().isFirstBlockDevInfo(blockDevInfo)) {
final BlockDevInfo oBdi = getDrbdVolumeInfo().getOtherBlockDevInfo(blockDevInfo);
final BlockDev nextBlockDev = AppContext.getBean(BlockDev.class);
nextBlockDev.init(this, getDrbdVolumeInfo(), oBdi);
return nextBlockDev;
} else {
final BlockDevInfo oBdi = getDrbdVolumeInfo().getOtherBlockDevInfo(blockDevInfo);
try {
final Application.RunMode runMode = Application.RunMode.LIVE;
/* apply */
final VolumeInfo dvi = getDrbdVolumeInfo();
globalInfo.apply(runMode);
final ResourceInfo dri = dvi.getDrbdResourceInfo();
application.invokeAndWait(new Runnable() {
@Override
public void run() {
dri.getInfoPanel();
}
});
dri.waitForInfoPanel();
dri.apply(runMode);
application.invokeAndWait(new Runnable() {
@Override
public void run() {
dvi.getInfoPanel();
}
});
dvi.waitForInfoPanel();
dvi.apply(runMode);
blockDevInfo.apply(runMode);
oBdi.apply(runMode);
/* create config */
globalInfo.createDrbdConfigLive();
final String gi1 = getGI(blockDevInfo);
final String gi2 = getGI(oBdi);