Community
Participate
Working Groups
public void figureMoved(IFigure source) {
// react on host figure move
if (getHost().getSelected() == EditPart.SELECTED_PRIMARY) {
// It may happen that when the event of the host figure being moved is
// fired, related source or target connections have not been revalidated
// as the feedback relies on valid bounds, we have to ensure
// those connections are revalidated so feedback is drawn correctly.
getLayer(LayerConstants.CONNECTION_LAYER).invalidateTree();
updateFeedback();
}