}
public void actionPerformed(ActionEvent e) {
ProcedureParameterTableModel model =
(ProcedureParameterTableModel) table.getModel();
ProcedureParameter parameter = model.getParameter(table.getSelectedRow());
int index = -1;
if (e.getSource() == moveUp) {
index = model.moveRowUp(parameter);
}
else if (e.getSource() == moveDown) {
index = model.moveRowDown(parameter);
}
if (index >= 0) {
table.select(index);
// note that 'setCallParameters' is donw by copy internally
parameter.getProcedure().setCallParameters(model.getObjectList());
eventController.fireProcedureEvent(
new ProcedureEvent(this, parameter.getProcedure(), MapEvent.CHANGE));
}
}