Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2017-07-27 12:17:13 +0000
committerAnsgar Radermacher2017-07-31 14:44:14 +0000
commit513568e3a1b37fe85a53acea6ac74f744bfd52f2 (patch)
treed53e6dfe244570d199dda70679cbdd11f8339216 /plugins
parent6eee66a672db8626c86d253032080573fb43dd6b (diff)
downloadorg.eclipse.papyrus-513568e3a1b37fe85a53acea6ac74f744bfd52f2.tar.gz
org.eclipse.papyrus-513568e3a1b37fe85a53acea6ac74f744bfd52f2.tar.xz
org.eclipse.papyrus-513568e3a1b37fe85a53acea6ac74f744bfd52f2.zip
Bug 401542 - [All Diagrams] Removed labels remain as invisible elements in diagram and lead to confusing selections
- No specific handling for edges, i.e. always reset text and images in case of invisible views (for both nodes and edges) Signed-off-by: Ansgar Radermacher <ansgar.radermacher@cea.fr> Change-Id: I74709e4383c8bf7c646d77ab6dfaa946b230599c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/TextAware.xtend5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/TextAware.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/TextAware.xtend
index eec54b495ce..6dc08068748 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/TextAware.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/TextAware.xtend
@@ -570,10 +570,6 @@ override refreshLabel(GenCommonBase it , GenDiagram diagram )'''
maskLabelPolicy = getEditPolicy(org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
}
if (maskLabelPolicy == null) {
- «IF it.oclIsKindOf(typeof(GenLinkLabel)) || it.oclIsKindOf(typeof(GenExternalNodeLabel))»
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- «ELSE»
org.eclipse.gmf.runtime.notation.View view = (org.eclipse.gmf.runtime.notation.View)getModel();
if(view.isVisible()) {
setLabelTextHelper(getFigure(), getLabelText());
@@ -583,7 +579,6 @@ override refreshLabel(GenCommonBase it , GenDiagram diagram )'''
setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
setLabelIconHelper(getFigure(), null);
}
- «ENDIF»
}
Object pdEditPolicy = getEditPolicy(org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE);
if (pdEditPolicy instanceof «diagram.getTextSelectionEditPolicyQualifiedClassName()») {

Back to the top