Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/providers/ParticipantTypeElement.java')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/providers/ParticipantTypeElement.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/providers/ParticipantTypeElement.java b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/providers/ParticipantTypeElement.java
new file mode 100644
index 00000000000..d6068d6b28f
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/providers/ParticipantTypeElement.java
@@ -0,0 +1,53 @@
+package org.eclipse.papyrus.uml.search.ui.providers;
+
+import org.eclipse.emf.ecore.ENamedElement;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.uml2.uml.NamedElement;
+
+
+public class ParticipantTypeElement {
+
+ boolean isChecked;
+
+ EObject element;
+
+
+
+ public EObject getElement() {
+ return element;
+ }
+
+
+
+ public void setElement(EObject element) {
+ this.element = element;
+ }
+
+
+ public ParticipantTypeElement(EObject element) {
+ super();
+ this.element = element;
+ isChecked = false;
+ }
+
+
+ public boolean isChecked() {
+ return isChecked;
+ }
+
+
+ public void setChecked(boolean isChecked) {
+ this.isChecked = isChecked;
+ }
+
+
+ public String getText() {
+ if(element instanceof NamedElement) {
+ return ((NamedElement)element).getName();
+ } else if(element instanceof ENamedElement) {
+ return ((ENamedElement)element).getName();
+ }
+ return null;
+ }
+
+}

Back to the top