use of org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ConditionColumnSynchronizer.PatternConditionMetaData in project drools-wb by kiegroup.
the class ModelSynchronizerImpl method updateColumn.
@Override
@SuppressWarnings("unchecked")
public List<BaseColumnFieldDiff> updateColumn(final Pattern52 originalPattern, final ConditionCol52 originalColumn, final Pattern52 editedPattern, final ConditionCol52 editedColumn) throws VetoException {
final PatternConditionMetaData originalMetaData = new PatternConditionMetaData(originalPattern, originalColumn);
final PatternConditionMetaData editedMetaData = new PatternConditionMetaData(editedPattern, editedColumn);
for (Synchronizer synchronizer : synchronizers) {
if (synchronizer.handlesUpdate(originalMetaData)) {
return synchronizer.update(originalMetaData, editedMetaData);
}
}
return Collections.emptyList();
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.impl.ConditionColumnSynchronizer.PatternConditionMetaData in project drools-wb by kiegroup.
the class ModelSynchronizerImpl method appendColumn.
@Override
@SuppressWarnings("unchecked")
public void appendColumn(final Pattern52 pattern, final ConditionCol52 column) throws VetoException {
final PatternConditionMetaData metaData = new PatternConditionMetaData(pattern, column);
for (Synchronizer synchronizer : synchronizers) {
if (synchronizer.handlesAppend(metaData)) {
synchronizer.append(metaData);
break;
}
}
fireAfterColumnInsertedEvent(column);
}
Aggregations