Object hotValue = getColumn();
Command hotCommand = null;
while (tf != null) {
final CommandListBox ght = new CommandListBox(this);
hp.insert(ght, 0);
List<Command> items = new ArrayList();
// hotCommand = new ClearCommand();
// items.add(hotCommand);
for (Constraint c : tf.getTable().getConstraints()) {
if (c instanceof ConstraintReferential) {
ConstraintReferential cr = (ConstraintReferential) c;
if (!cr.isHidden()) {
Command command = new ConstraintCommand(cr);
if (cr == hotValue) {
hotCommand = command;
}
items.add(command);
}
}
}
for (Column c : tf.getTable().getColumns()) {
if (!c.isHidden()) {
Command command = new ColumnCommand(tf.getAlias(), c);
if (c == hotValue) {
hotCommand = command;
}
items.add(command);
}
}
ght.setValue(hotCommand);
ght.setAcceptableValues(items);
JoinHelper thing = JoinHelper.getParent(tf);
if (thing != null) {
tf = thing.getParent();
hotValue = thing.getConstraint();