Author: vrubezhny
Date: 2007-08-07 12:35:13 -0400 (Tue, 07 Aug 2007)
New Revision: 2939
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-670 xhtml code completion does not update it's
list of completions
Seam context usage is fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2007-08-07
16:29:22 UTC (rev 2938)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2007-08-07
16:35:13 UTC (rev 2939)
@@ -308,6 +308,8 @@
if (project == null || resource == null)
return null;
+ if (!"java".equals(resource.getFileExtension()))
+ return null;
Set<ISeamComponent> components =
project.getComponentsByPath(resource.getFullPath());
if (components.size() > 1) // Don't use scope in case of more than one
component