Author: scabanovich
Date: 2009-12-09 13:43:34 -0500 (Wed, 09 Dec 2009)
New Revision: 19163
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IAnnotationDeclaration.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParametedType.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AnnotationDeclaration.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/TypeDeclaration.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4943
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IAnnotationDeclaration.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IAnnotationDeclaration.java 2009-12-09
18:31:16 UTC (rev 19162)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IAnnotationDeclaration.java 2009-12-09
18:43:34 UTC (rev 19163)
@@ -12,6 +12,8 @@
import org.eclipse.jdt.core.IAnnotation;
import org.eclipse.jdt.core.IMember;
+import org.eclipse.jdt.core.IType;
+import org.jboss.tools.common.text.ITextSourceReference;
/**
* Represents an annotation declaration. For example a qualifier or a scope
@@ -19,7 +21,7 @@
*
* @author Alexey Kazakov
*/
-public interface IAnnotationDeclaration extends ITypeDeclaration {
+public interface IAnnotationDeclaration extends ITextSourceReference {
/**
* Return the annotation declaration.
@@ -34,4 +36,6 @@
* @return the member which is annotated by this declaration
*/
IMember getParentMember();
+
+ public IType getType();
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParametedType.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParametedType.java 2009-12-09
18:31:16 UTC (rev 19162)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParametedType.java 2009-12-09
18:43:34 UTC (rev 19163)
@@ -10,4 +10,11 @@
* @return the corresponding IType of the declaration.
*/
IType getType();
+
+ /**
+ * Returns signature of the declaration
+ *
+ * @return signature of the declaration
+ */
+ public String getSignature();
}
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AnnotationDeclaration.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AnnotationDeclaration.java 2009-12-09
18:31:16 UTC (rev 19162)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AnnotationDeclaration.java 2009-12-09
18:43:34 UTC (rev 19163)
@@ -61,6 +61,7 @@
return annotationTypeName;
}
+
public IType getType() {
return type;
}
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
(rev 0)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java 2009-12-09
18:43:34 UTC (rev 19163)
@@ -0,0 +1,24 @@
+package org.jboss.tools.cdi.internal.core.impl;
+
+import org.eclipse.jdt.core.IType;
+import org.jboss.tools.cdi.core.IParametedType;
+
+public class ParametedType implements IParametedType {
+ protected IType type;
+ protected String signature;
+
+ public ParametedType() {}
+
+ public IType getType() {
+ return type;
+ }
+
+ public String getSignature() {
+ return signature;
+ }
+
+ public void setSignature(String signature) {
+ this.signature = signature;
+ }
+
+}
Property changes on:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/TypeDeclaration.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/TypeDeclaration.java 2009-12-09
18:31:16 UTC (rev 19162)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/TypeDeclaration.java 2009-12-09
18:43:34 UTC (rev 19163)
@@ -3,8 +3,7 @@
import org.eclipse.jdt.core.IType;
import org.jboss.tools.cdi.core.ITypeDeclaration;
-public class TypeDeclaration implements ITypeDeclaration {
- IType type;
+public class TypeDeclaration extends ParametedType implements ITypeDeclaration {
int length;
int startPosition;
@@ -16,10 +15,6 @@
this.startPosition = startPosition;
}
- public IType getType() {
- return type;
- }
-
public int getLength() {
return length;
}