Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2007-12-18 00:38:28 +0000
committernitind2007-12-18 00:38:28 +0000
commitd84ea4b5d7f091a9a5e6be8c1f74df3f2c07f7b2 (patch)
tree980b3202d30725fb0105e3f1330e75f77dd1283f /bundles/org.eclipse.jst.jsp.core/src/org
parent2d4a7efdb308f3d65fa45857825cf51113a2d7b2 (diff)
downloadwebtools.sourceediting-d84ea4b5d7f091a9a5e6be8c1f74df3f2c07f7b2.tar.gz
webtools.sourceediting-d84ea4b5d7f091a9a5e6be8c1f74df3f2c07f7b2.tar.xz
webtools.sourceediting-d84ea4b5d7f091a9a5e6be8c1f74df3f2c07f7b2.zip
213245 - NPE in JSPTaglibDirectiveContentAssistProcessor with non-faceted project
Diffstat (limited to 'bundles/org.eclipse.jst.jsp.core/src/org')
-rw-r--r--bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/util/FacetModuleCoreSupport.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/util/FacetModuleCoreSupport.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/util/FacetModuleCoreSupport.java
index f705669a6c..14b90a73d0 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/util/FacetModuleCoreSupport.java
+++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/util/FacetModuleCoreSupport.java
@@ -38,6 +38,25 @@ public final class FacetModuleCoreSupport {
/**
* @param project
+ * @return the computed IPath to the "root" of the web contents, either from facet knowledge or hueristics, or null if one can not be determined
+ */
+ public static IPath computeWebContentRootPath(IPath path) {
+ IPath root = null;
+ try {
+ root = FacetModuleCoreSupportDelegate.getWebContentRootPath(ResourcesPlugin.getWorkspace().getRoot().getProject(path.segment(0)));
+ }
+ catch (NoClassDefFoundError e) {
+ if (_dump_NCDFE)
+ e.printStackTrace();
+ }
+ if(root == null) {
+// root = getLocalRoot(path);
+ }
+ return root;
+ }
+
+ /**
+ * @param project
* @return -1 if the project does not have the JST Web facet, the version
* number of it otherwise
* @throws org.eclipse.core.runtime.CoreException

Back to the top