Beispiel #1
0
 @Override
 public void refresh() {
   super.refresh();
   final PropertyFigure figure = (PropertyFigure) getFigure();
   if (figure != null) {
     figure.refresh();
   }
 }
Beispiel #2
0
 /** 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();
 }