Author: scabanovich
Date: 2011-03-31 14:32:04 -0400 (Thu, 31 Mar 2011)
New Revision: 30188
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IStereotype.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java
Log:
JBIDE-3120
https://issues.jboss.org/browse/JBIDE-3120
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IStereotype.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IStereotype.java 2011-03-31
17:26:41 UTC (rev 30187)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IStereotype.java 2011-03-31
18:32:04 UTC (rev 30188)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.cdi.core;
-import org.eclipse.jdt.core.IAnnotation;
-
/**
* Represents a stereotype.
*
@@ -20,14 +18,6 @@
public interface IStereotype extends IScoped, IStereotyped, ICDINamedAnnotation,
IAnnotated, IInterceptorBinded {
/**
- * Returns the location of @Name declaration of this stereotype. If the bean
- * doesn't have the @Name declaration then null will be returned.
- *
- * @return the location of @Name declaration of this bean.
- */
- IAnnotation getNameLocation();
-
- /**
* Determines if the stereotype is an alternative.
*
* @return <tt>true</tt> if the stereotype is an alternative, and
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java 2011-03-31
17:26:41 UTC (rev 30187)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java 2011-03-31
18:32:04 UTC (rev 30188)
@@ -15,7 +15,6 @@
import java.util.List;
import java.util.Set;
-import org.eclipse.jdt.core.IAnnotation;
import org.jboss.tools.cdi.core.CDIUtil;
import org.jboss.tools.cdi.core.IAnnotationDeclaration;
import org.jboss.tools.cdi.core.IInterceptorBinding;
@@ -69,14 +68,6 @@
/*
* (non-Javadoc)
- * @see org.jboss.tools.cdi.core.IStereotype#getNameLocation()
- */
- public IAnnotation getNameLocation() {
- return getNameDeclaration() != null ? getNameDeclaration().getDeclaration() : null;
- }
-
- /*
- * (non-Javadoc)
* @see org.jboss.tools.cdi.core.IStereotype#getStereotypeDeclarations()
*/
public Set<IStereotypeDeclaration> getStereotypeDeclarations() {