}
}
@Override
void create(ColumnConfigInfo column, ColumnConfigInfo nextColumn) throws Exception {
SimpleName columnsList = ensureColumnsList();
ColumnConfigAssociation association = new ColumnConfigAssociation(columnsList);
AssociationObject associationObject = new AssociationObject(association, true);
if (nextColumn == null) {
Statement columnsListUsageStatement = AstNodeUtils.getEnclosingStatement(columnsList);
StatementTarget target = new StatementTarget(columnsListUsageStatement, true);
JavaInfoUtils.addTarget(column, associationObject, GridInfo.this, target);
} else {
JavaInfoUtils.add(column, associationObject, GridInfo.this, nextColumn);
}
}
@Override
void move(ColumnConfigInfo column, ColumnConfigInfo nextColumn) throws Exception {
SimpleName columnsList = ensureColumnsList();
ColumnConfigAssociation association = new ColumnConfigAssociation(columnsList);
AssociationObject associationObject = new AssociationObject(association, true);
if (nextColumn == null) {
Statement columnsListUsageStatement = AstNodeUtils.getEnclosingStatement(columnsList);
StatementTarget target = new StatementTarget(columnsListUsageStatement, true);