*
* @return
*/
private StateLabel getLabel() {
if (getHost() instanceof StatePart) {
StatePart part = (StatePart) getHost();
return ((StateLabel) part.getFigure());
}
else {
IfPart part = (IfPart) getHost();
return ((StateLabel) part.getFigure());
}
}