Author: scabanovich
Date: 2010-06-08 09:42:24 -0400 (Tue, 08 Jun 2010)
New Revision: 22630
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
Log:
https://jira.jboss.org/browse/JBIDE-6414
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2010-06-08
13:02:06 UTC (rev 22629)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IBeanManager.java 2010-06-08
13:42:24 UTC (rev 22630)
@@ -219,6 +219,13 @@
IQualifier getQualifier(IPath path);
/**
+ * Returns names of all available scope annotations
+ *
+ * @return names of all available scope annotations
+ */
+ Set<String> getScopeNames();
+
+ /**
* Returns scope model element for fully qualified name of scope annotation
* type
*
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-06-08
13:02:06 UTC (rev 22629)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2010-06-08
13:42:24 UTC (rev 22630)
@@ -707,6 +707,12 @@
return qualifiersByPath.get(path);
}
+ public Set<String> getScopeNames() {
+ Set<String> result = new HashSet<String>();
+ result.addAll(scopes.keySet());
+ return result;
+ }
+
public ScopeElement getScope(String qualifiedName) {
return scopes.get(qualifiedName);
}