cp.south(getDialogButtons());
cp.asContentPaneFor(this);
}
private UiProvider getMessageArea(String error, String expression, String question) {
OneColumnPanel col = new OneColumnPanel();
col.setInsets(0, 0, 10, 0);
col.setWeightX(1.0);
col.add(MigrationDialogUtils.getReadOnlyTextDisplay(error));
col.setFillOut();
col.add(getExpressionArea(expression));
col.setFill(OneColumnPanel.HORIZONTAL);
col.setWeightY(0.0);
col.add(MigrationDialogUtils.getReadOnlyTextDisplay(question));
col.setBorder(Empty.border(10, 10, 0, 10));
return col;
}