@Override public void refresh() { super.refresh(); final PropertyFigure figure = (PropertyFigure) getFigure(); if (figure != null) { figure.refresh(); } }
/** Sets the width of the line when selected */ @Override public void setSelected(final int value) { super.setSelected(value); final PropertyFigure figure = (PropertyFigure) getFigure(); if (value != EditPart.SELECTED_NONE) { figure.setBackgroundColor(ColorConstants.menuBackgroundSelected); } else { figure.setBackgroundColor(ColorConstants.listBackground); } figure.repaint(); }