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:
authorbchilds2007-07-25 19:51:08 +0000
committerbchilds2007-07-25 19:51:08 +0000
commit0def2e5548eb36c95263999e669cf2e13466ad6c (patch)
tree0a0cb5d9903076247f434c5e61105e6e1e69d37f /bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal
parent56077d2e0f49a5b5ac97f71d9674ca951e9320ba (diff)
downloadwebtools.sourceediting-0def2e5548eb36c95263999e669cf2e13466ad6c.tar.gz
webtools.sourceediting-0def2e5548eb36c95263999e669cf2e13466ad6c.tar.xz
webtools.sourceediting-0def2e5548eb36c95263999e669cf2e13466ad6c.zip
resource improvements
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal')
-rw-r--r--bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/hyperlink/JSDTHyperlinkDetector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/hyperlink/JSDTHyperlinkDetector.java b/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/hyperlink/JSDTHyperlinkDetector.java
index 7100e60235..914756cbbd 100644
--- a/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/hyperlink/JSDTHyperlinkDetector.java
+++ b/bundles/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/hyperlink/JSDTHyperlinkDetector.java
@@ -23,6 +23,7 @@ import org.eclipse.wst.jsdt.core.IMethod;
import org.eclipse.wst.jsdt.core.ISourceRange;
import org.eclipse.wst.jsdt.core.ISourceReference;
import org.eclipse.wst.jsdt.core.JavaModelException;
+import org.eclipse.wst.jsdt.internal.core.JavaElement;
import org.eclipse.wst.jsdt.web.core.internal.java.IJsTranslation;
import org.eclipse.wst.jsdt.web.core.internal.java.JsTranslation;
import org.eclipse.wst.jsdt.web.core.internal.java.JsTranslationAdapter;
@@ -73,7 +74,7 @@ public class JSDTHyperlinkDetector extends AbstractHyperlinkDetector {
ICompilationUnit myUnit = jspTranslation.getCompilationUnit();
while(!(unit instanceof ICompilationUnit || unit instanceof IClassFile || unit==null)) {
- unit = ((ILocalVariable) element).getParent();
+ unit = ((JavaElement) unit).getParent();
}
if(unit instanceof ICompilationUnit) {
ICompilationUnit cu = (ICompilationUnit)unit;

Back to the top