/** @generated */ protected void setLabelIconHelper(IFigure figure, Image icon) { if (figure instanceof WrappingLabel) { ((WrappingLabel) figure).setIcon(icon); } else if (figure instanceof ILabelFigure) { ((ILabelFigure) figure).setIcon(icon); } else { ((Label) figure).setIcon(icon); } }
/** @generated */ protected void setLabelTextHelper(IFigure figure, String text) { if (figure instanceof WrappingLabel) { ((WrappingLabel) figure).setText(text); } else if (figure instanceof ILabelFigure) { ((ILabelFigure) figure).setText(text); } else { ((Label) figure).setText(text); } }