Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Noyrit2015-01-20 14:03:00 +0000
committerFlorian Noyrit2015-01-20 14:03:00 +0000
commit6421409abb6b40300cd4978f304b0e50d7974f65 (patch)
treee2ca947494ad64c462535ad057302f4bb28c754f /plugins/developer/org.eclipse.papyrus.def
parenta4af896d6a42ef056a3ceead321aa7ce848aa0f5 (diff)
downloadorg.eclipse.papyrus-6421409abb6b40300cd4978f304b0e50d7974f65.tar.gz
org.eclipse.papyrus-6421409abb6b40300cd4978f304b0e50d7974f65.tar.xz
org.eclipse.papyrus-6421409abb6b40300cd4978f304b0e50d7974f65.zip
Migrated UML Class Diagram to ElementType registry.
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.def')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/LinkLabelEditPart.xtend9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/LinkLabelEditPart.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/LinkLabelEditPart.xtend
index 6d88ac880d8..4b7bef85e96 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/LinkLabelEditPart.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/diagram/editparts/LinkLabelEditPart.xtend
@@ -15,7 +15,6 @@ package aspects.diagram.editparts
import com.google.inject.Inject
import com.google.inject.Singleton
-import org.eclipse.gmf.codegen.gmfgen.CustomBehaviour
import org.eclipse.gmf.codegen.gmfgen.GenLinkLabel
import org.eclipse.papyrus.papyrusgmfgenextension.LabelVisibilityPreference
import xpt.Common
@@ -27,7 +26,7 @@ import xpt.Common
override implementsList(GenLinkLabel it) '''
implements org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart, org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit
««« BEGIN: PapyrusGenCode
- «IF it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.externalNodeLabels.contains(it)].size != 0»
+ «IF it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.linkLabels.contains(it)].size != 0»
, org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider
«ENDIF»
««« END: PapyrusGenCode
@@ -36,15 +35,15 @@ import xpt.Common
override additions(GenLinkLabel it) '''
««« BEGIN: PapyrusGenCode
- «IF it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v | v.externalNodeLabels.contains(it)].size != 0»
+ «IF it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v | v.linkLabels.contains(it)].size != 0»
«generatedClassComment»
public String getLabelRole(){
- return "«it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.externalNodeLabels.contains(it)].head.role»";//$NON-NLS-1$
+ return "«it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.linkLabels.contains(it)].head.role»";//$NON-NLS-1$
}
«generatedClassComment»
public String getIconPathRole(){
- return "«it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.externalNodeLabels.contains(it)].head.iconPathRole»";//$NON-NLS-1$
+ return "«it.eResource.allContents.filter(typeof (LabelVisibilityPreference)).filter[v |v.linkLabels.contains(it)].head.iconPathRole»";//$NON-NLS-1$
}
«ENDIF»
««« END: PapyrusGenCode

Back to the top