use of de.janrufmonitor.ui.jface.wizards.MsnWizard in project janrufmonitor by tbrandt77.
the class InitMsnPage method openMsnWizard.
private void openMsnWizard(String msn, String additional) {
Display display = DisplayManager.getDefaultDisplay();
Shell shell = new Shell(display);
// Create the dialog
IMsn oldMsn = this.getRuntime().getCallFactory().createMsn(msn, additional);
WizardDialog.setDefaultImage(SWTImageManager.getInstance(this.getRuntime()).get(IJAMConst.IMAGE_KEY_PIM_ICON));
MsnWizard msnW = new MsnWizard(oldMsn);
WizardDialog dlg = new WizardDialog(shell, msnW);
dlg.open();
if (dlg.getReturnCode() == WizardDialog.OK) {
IMsn result = msnW.getResult();
this.msns.remove(oldMsn);
this.msns.add(result);
}
tv.setInput(this.msns);
this.resizeTable(tv.getTable());
}
use of de.janrufmonitor.ui.jface.wizards.MsnWizard in project janrufmonitor by tbrandt77.
the class MsnManager method openMsnWizard.
private void openMsnWizard(String msn, String additional) {
Display display = DisplayManager.getDefaultDisplay();
Shell shell = new Shell(display);
// Create the dialog
IMsn oldMsn = this.getRuntime().getCallFactory().createMsn(msn, additional);
WizardDialog.setDefaultImage(SWTImageManager.getInstance(this.getRuntime()).get(IJAMConst.IMAGE_KEY_PIM_ICON));
MsnWizard msnW = new MsnWizard(oldMsn);
WizardDialog dlg = new WizardDialog(shell, msnW);
dlg.open();
if (dlg.getReturnCode() == WizardDialog.OK) {
IMsn result = msnW.getResult();
this.msns.remove(oldMsn);
this.msns.add(result);
}
tv.setInput(this.msns);
this.resizeTable(tv.getTable());
}
Aggregations