Skip to content
Snippets Groups Projects
Commit c255769e authored by Ulrich Schöpp's avatar Ulrich Schöpp Committed by Ulrich Schöpp
Browse files

Remove text label when anchorage is deleted


Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
Issue-Ref: 4184
parent 31433bed
No related branches found
No related tags found
1 merge request!166Polish diagram appearance
......@@ -66,6 +66,15 @@ public class NamedLayoutedCircularAnchorageContentVisual<T extends ILayoutedMode
}
}
/** {@inheritDoc} */
@Override
public void removeAllVisuals(DiagramLayers layers) {
super.removeAllVisuals(layers);
if(nameText.getParent() != null) {
layers.getVisualFeedbackLayer().remove(nameText);
}
}
/** Returns whether the name label should be enabled. */
public boolean enableName() {
return !stickyConnectorHasVisibleConnections(getModelElement());
......
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