Author: akazakov
Date: 2011-09-29 19:50:02 -0400 (Thu, 29 Sep 2011)
New Revision: 35185
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
Log:
Added comments
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-09-29
23:37:48 UTC (rev 35184)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-09-29
23:50:02 UTC (rev 35185)
@@ -128,13 +128,19 @@
}
public Set<CDICoreNature> getCDIProjects() {
- return dependsOn;
+ return getCDIProjects(false);
}
public CDIExtensionManager getExtensionManager() {
return extensions;
}
+ /**
+ * Returns all the project that are included into classpath of this project.
+ * @param hierarchy If false then return the projects explicitly included into the
project classpath.
+ * If true then all the project from the entire hierarchy will be returned.
+ * @return
+ */
public Set<CDICoreNature> getCDIProjects(boolean hierarchy) {
if(hierarchy) {
if(dependsOn.isEmpty()) return dependsOn;
@@ -252,6 +258,10 @@
return result;
}
+ /**
+ * Returns all the CDI projects that include this project into their class path.
+ * @return
+ */
public Set<CDICoreNature> getDependentProjects() {
return usedBy;
}
Show replies by date