*
* @return the required insertion data or null if dialog was cancelled.
*/
protected RowColumnInsertionDialog.InsertionData getInsertionDetails() {
RowColumnInsertionDialog.InsertionData result = null;
RowColumnInsertionDialog dialog =
new RowColumnInsertionDialog(
Display.getCurrent().getActiveShell(),
RowColumnInsertionDialog.Type.COLUMN);
int returnCode = dialog.open();
if (returnCode == IDialogConstants.OK_ID) {
result =
(RowColumnInsertionDialog.InsertionData)
dialog.getResult()[0];
}
return result;
}