# | |
# Menu: Examples > Modeling > Papyrus > Display Selection in MDT Papyrus | |
# Kudos: Arthur Daussy | |
# Description: {Demonstrate the use of Selection Modules while selecting an element in MDT Papyrus.} | |
#VisibleWhen:[With activeEditor { | |
# Equal "org.eclipse.papyrus.infra.core.papyrusEditor" | |
#}] | |
# License: EDL 1.0 | |
# | |
loadModule("SelectionModule") | |
# Print the selection use custom selector | |
print "Get selection using priority order of the Custom Selector Service\n" | |
print getCustomSelection() | |
print "Get the selection using a specific Selector (Semantic Selector)\n" | |
print getCustomSelectionFromSelector("GMFSemanticSeletor") | |
print "Get the selection using a specific Selector (Notation Selector)\n" | |
print getCustomSelectionFromSelector("GMFNotationSelector") |