Search in sources :

Example 1 with ReconnectForeignKeyCommand

use of com.cubrid.common.ui.er.commands.ReconnectForeignKeyCommand in project cubrid-manager by CUBRID.

the class TableNodeEditPolicy method getReconnectSourceCommand.

/**
	 * @see GraphicalNodeEditPolicy#getReconnectSourceCommand(ReconnectRequest)
	 */
@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
    ReconnectForeignKeyCommand cmd = new ReconnectForeignKeyCommand();
    cmd.setRelationship((Relationship) request.getConnectionEditPart().getModel());
    TablePart tablePart = (TablePart) getHost();
    cmd.setSourceForeignKey(tablePart.getTable());
    return cmd;
}
Also used : TablePart(com.cubrid.common.ui.er.part.TablePart) ReconnectForeignKeyCommand(com.cubrid.common.ui.er.commands.ReconnectForeignKeyCommand)

Aggregations

ReconnectForeignKeyCommand (com.cubrid.common.ui.er.commands.ReconnectForeignKeyCommand)1 TablePart (com.cubrid.common.ui.er.part.TablePart)1