Author: scabanovich
Date: 2007-10-22 09:18:54 -0400 (Mon, 22 Oct 2007)
New Revision: 4407
Modified:
trunk/struts/plugins/org.jboss.tools.struts.verification/src/org/jboss/tools/struts/verification/CheckInitParam.java
Log:
JBIDE-1078
Modified:
trunk/struts/plugins/org.jboss.tools.struts.verification/src/org/jboss/tools/struts/verification/CheckInitParam.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.verification/src/org/jboss/tools/struts/verification/CheckInitParam.java 2007-10-22
12:22:59 UTC (rev 4406)
+++
trunk/struts/plugins/org.jboss.tools.struts.verification/src/org/jboss/tools/struts/verification/CheckInitParam.java 2007-10-22
13:18:54 UTC (rev 4407)
@@ -26,6 +26,10 @@
XModelObject o = ((VObjectImpl)object).getModelObject();
String paramName = o.getAttributeValue("param-name");
if(paramName == null) return null;
+ XModelObject parent = o.getParent();
+ if(parent == null ||
!"WebAppServlet".equals(parent.getModelEntity().getName())) {
+ return null;
+ }
if(!paramName.equals("config") &&
!paramName.startsWith("config/")) return null;
String value = o.getAttributeValue("param-value");
Show replies by date