Author: scabanovich
Date: 2012-04-27 14:07:30 -0400 (Fri, 27 Apr 2012)
New Revision: 40575
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/refactoring/RefactorSearcher.java
Log:
JBIDE-11682
https://issues.jboss.org/browse/JBIDE-11682
Do not search in derived resources.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/refactoring/RefactorSearcher.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/refactoring/RefactorSearcher.java 2012-04-27
15:27:24 UTC (rev 40574)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/refactoring/RefactorSearcher.java 2012-04-27
18:07:30 UTC (rev 40575)
@@ -292,6 +292,9 @@
}
protected void searchInCach(IFile file){
+ if(file == null || !file.isAccessible() || file.isDerived(IResource.CHECK_ANCESTORS))
{
+ return;
+ }
ELResolver[] resolvers = ELResolverFactoryManager.getInstance().getResolvers(file);
ELContext context = PageContextFactory.createPageContext(file);