Author: estherbin
Date: 2008-07-21 11:43:45 -0400 (Mon, 21 Jul 2008)
New Revision: 9195
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java
Log:
Fix related issue with message bundle.
https://jira.jboss.com:8443/jira/browse/JBIDE-2010
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java 2008-07-21
15:38:02 UTC (rev 9194)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/bundle/BundleMap.java 2008-07-21
15:43:45 UTC (rev 9195)
@@ -405,7 +405,8 @@
private String getBundleValue(String prefix, String propertyName, int offset) {
BundleEntry entry = getBundle(prefix);
if(entry != null) {
- if(entry.offset > offset)return null;
+ //Added by estherbin fix JBIDE-2010 (issue with resources).
+ if(offset!=0 && (entry.offset > offset))return null;
String name = prefix + "." + propertyName;
try{
String value = (String)entry.bundle.getObject(propertyName);