Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2013-09-05 19:20:02 -0400
committerChristian W. Damus2013-09-06 14:39:03 -0400
commitf1cc4b5280be5bf1100807d2b560457c29a7955e (patch)
tree1e013f65a627303826fc1fff99791223c6c67012 /plugins/views/org.eclipse.papyrus.views.search
parent2d5a1263f36097baafa147b5d661222f8abcbe22 (diff)
downloadorg.eclipse.papyrus-f1cc4b5280be5bf1100807d2b560457c29a7955e.tar.gz
org.eclipse.papyrus-f1cc4b5280be5bf1100807d2b560457c29a7955e.tar.xz
org.eclipse.papyrus-f1cc4b5280be5bf1100807d2b560457c29a7955e.zip
415371: [CDO] Post-process search results to create attribute matches
https://bugs.eclipse.org/bugs/show_bug.cgi?id=415371
Diffstat (limited to 'plugins/views/org.eclipse.papyrus.views.search')
-rw-r--r--plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/AttributeMatch.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/AttributeMatch.java b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/AttributeMatch.java
index 4932a486b14..0a7996d6c0b 100644
--- a/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/AttributeMatch.java
+++ b/plugins/views/org.eclipse.papyrus.views.search/src/org/eclipse/papyrus/views/search/results/AttributeMatch.java
@@ -66,6 +66,26 @@ public class AttributeMatch extends ModelMatch {
}
/**
+ * Create an attribute-match in a parent result entry that already exists.
+ *
+ * @param parent
+ * the parent result entry
+ * @param offset
+ * @param lengtt
+ * @param target
+ * the element containing the value of the attribute that matches
+ * @param attribute
+ * the attribute that raised the match
+ */
+ public AttributeMatch(AbstractResultEntry parent, int offset, int length, Object target, Object attribute, Stereotype stereotype) {
+ super(offset, length, target, (ScopeEntry)parent.getElement());
+
+ this.attribute = attribute;
+ this.stereotype = stereotype;
+ this.parent = parent;
+ }
+
+ /**
*
* @see org.eclipse.papyrus.views.search.results.AbstractResultEntry#equals(java.lang.Object)
* In addition, it checks if target is the same as well.

Back to the top