Skip to content
Snippets Groups Projects
Commit d7c0b881 authored by Johannes Eder's avatar Johannes Eder
Browse files

fixed

refs 2126
parent 27b84f5b
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,17 @@ public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase> ex
public void notifyChanged(Notification notification) {
super.notifyChanged(notification);
// do not care what happens, just refresh everything
if(notification.getEventType() == Notification.SET) {
if(notification.getNotifier() instanceof ConnectionSegmentBase) {
if(notification.getNewValue() == null) {
// fix of refs 2126
// When deleting a channel the gui is refreshed before the model markers are
// updated. So we catch the deletion of a channel here and set the icon to
// null if the channel is removed.
decorationFigure.setIcon(null);
}
}
}
refresh();
}
};
......@@ -207,7 +218,7 @@ public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase> ex
}
decorationFigure.setToolTip(new Label(message));
}
}
}
}
/** Returns whether to use small or big decoration image. Default implementation uses big image. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment