Search in sources :

Example 6 with ArrowConnection

use of com.cubrid.cubridmanager.ui.replication.editor.model.ArrowConnection in project cubrid-manager by CUBRID.

the class ContainerNodePart method getModelTargetConnections.

/**
	 * @see com.cubrid.cubridmanager.ui.replication.editor.parts.NodePart#getModelTargetConnections()
	 * @return list
	 */
protected List<ArrowConnection> getModelTargetConnections() {
    List<ArrowConnection> list = new ArrayList<ArrowConnection>();
    list.addAll(getContainerNode().getIncomingConnections());
    for (Iterator<LeafNode> iter = getContainerNode().getChildNodeList().iterator(); iter.hasNext(); ) {
        LeafNode node = (LeafNode) iter.next();
        list.addAll(node.getIncomingConnections());
    }
    return list;
}
Also used : LeafNode(com.cubrid.cubridmanager.ui.replication.editor.model.LeafNode) ArrayList(java.util.ArrayList) ArrowConnection(com.cubrid.cubridmanager.ui.replication.editor.model.ArrowConnection)

Aggregations

ArrowConnection (com.cubrid.cubridmanager.ui.replication.editor.model.ArrowConnection)6 LeafNode (com.cubrid.cubridmanager.ui.replication.editor.model.LeafNode)5 ContainerNode (com.cubrid.cubridmanager.ui.replication.editor.model.ContainerNode)3 DistributorNode (com.cubrid.cubridmanager.ui.replication.editor.model.DistributorNode)3 MasterNode (com.cubrid.cubridmanager.ui.replication.editor.model.MasterNode)3 SlaveNode (com.cubrid.cubridmanager.ui.replication.editor.model.SlaveNode)3 ArrayList (java.util.ArrayList)3 Point (org.eclipse.draw2d.geometry.Point)3 ICubridNode (com.cubrid.common.ui.spi.model.ICubridNode)2 HostNode (com.cubrid.cubridmanager.ui.replication.editor.model.HostNode)2 Node (com.cubrid.cubridmanager.ui.replication.editor.model.Node)2 DeleteConnectionCommand (com.cubrid.cubridmanager.ui.replication.editor.commands.DeleteConnectionCommand)1 List (java.util.List)1