Author: scabanovich
Date: 2012-05-18 20:03:52 -0400 (Fri, 18 May 2012)
New Revision: 41178
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java
Log:
JBIDE-11552
https://issues.jboss.org/browse/JBIDE-11552
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java 2012-05-18
22:36:50 UTC (rev 41177)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java 2012-05-19
00:03:52 UTC (rev 41178)
@@ -28,6 +28,8 @@
ISourceRange range;
IMemberValuePair[] memberValues = new IMemberValuePair[0];
+ IJavaElement parent;
+
public AnnotationLiteral(IResource declaringResource, String source, ISourceRange range,
IMemberValuePair[] memberValues, IType annotationType) {
this.declaringResource = declaringResource;
this.source = source;
@@ -85,9 +87,13 @@
}
public IJavaElement getParentElement() {
- return null;
+ return parent;
}
+ public void setParentElement(IJavaElement element) {
+ parent = element;
+ }
+
public IMemberValuePair[] getMemberValuePairs() {
return memberValues;
}