Author: akazakov
Date: 2009-12-09 13:54:02 -0500 (Wed, 09 Dec 2009)
New Revision: 19164
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/IDecorator.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/core/ITypeDeclaration.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:43:34 UTC (rev 19163)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IAnnotationDeclaration.java 2009-12-09
18:54:02 UTC (rev 19164)
@@ -37,5 +37,10 @@
*/
IMember getParentMember();
- public IType getType();
+ /**
+ * Returns the corresponding IType of the annotation.
+ *
+ * @return the corresponding IType of the annotation
+ */
+ IType getType();
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IDecorator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IDecorator.java 2009-12-09
18:43:34 UTC (rev 19163)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IDecorator.java 2009-12-09
18:54:02 UTC (rev 19164)
@@ -12,8 +12,6 @@
import java.util.Set;
-import org.eclipse.jdt.core.IType;
-
/**
* Represents a decorator.
*
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:43:34 UTC (rev 19163)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParametedType.java 2009-12-09
18:54:02 UTC (rev 19164)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
package org.jboss.tools.cdi.core;
import org.eclipse.jdt.core.IType;
@@ -2,2 +12,8 @@
+/**
+ * Represents a wrapper for IType object which could be parameted.
+ * For example if we have some method
+ * List<String> getList() {...}
+ * then IParametedType for return type of this method will wrap List<> and its
signature.
+ */
public interface IParametedType {
@@ -12,9 +28,9 @@
IType getType();
/**
- * Returns signature of the declaration
+ * Returns signature of the declaration.
*
* @return signature of the declaration
*/
public String getSignature();
-}
+}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/ITypeDeclaration.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/ITypeDeclaration.java 2009-12-09
18:43:34 UTC (rev 19163)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/ITypeDeclaration.java 2009-12-09
18:54:02 UTC (rev 19164)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.cdi.core;
-import org.eclipse.jdt.core.IType;
import org.jboss.tools.common.text.ITextSourceReference;
/**