use of com.cubrid.cubridmanager.ui.replication.editor.figures.LeafNodeFigure in project cubrid-manager by CUBRID.
the class LeafNodePart method refreshVisuals.
/**
* @see com.cubrid.cubridmanager.ui.replication.editor.parts.NodePart#refreshVisuals()
*/
protected void refreshVisuals() {
super.refreshVisuals();
LeafNode node = (LeafNode) getModel();
LeafNodeFigure figure = (LeafNodeFigure) getFigure();
figure.setText(node.getName());
if (getModel() instanceof MasterNode) {
figure.setIcon(CubridManagerUIPlugin.getImage("icons/replication/master.png"));
}
if (getModel() instanceof DistributorNode) {
figure.setIcon(CubridManagerUIPlugin.getImage("icons/replication/distributor.gif"));
}
if (getModel() instanceof SlaveNode) {
figure.setIcon(CubridManagerUIPlugin.getImage("icons/replication/slave.png"));
}
}
Aggregations