commit | ebde1de9dcd4758bfaf61219b40ba52f21ed397b | [log] [tgz] |
---|---|---|
author | cbridgha <cbridgha> | Thu Mar 03 16:53:26 2005 +0000 |
committer | cbridgha <cbridgha> | Thu Mar 03 16:53:26 2005 +0000 |
tree | 6c2f09e6d1513adc56c68524f6948fa18aaa32a4 | |
parent | 95655dea46f30727689cb47e7dbfba840b12082f [diff] |
temp method to get first module: committed for JL
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java index 8d5692c..4f71b5c 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/modulecore/ModuleCore.java
@@ -650,6 +650,17 @@ private void throwAttemptedReadOnlyModification() { throw new IllegalStateException("Attempt to modify a ModuleCore edit facade that was loaded as read-only."); } + + /** + * temporary method to return first module in the project + * @return first module in the project + * @deprecated + */ + public WorkbenchModule getFirstModule() { + if (getWorkbenchModules().length>0) + return getWorkbenchModules()[0]; + return null; + } } \ No newline at end of file