You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/01/02 17:49:28 UTC
svn commit: r895235 -
/incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java
Author: scottbw
Date: Sat Jan 2 16:49:27 2010
New Revision: 895235
URL: http://svn.apache.org/viewvc?rev=895235&view=rev
Log:
Set the language tag of default start files and icons using the method for identifying locale folder names.
Modified:
incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java
Modified: incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java?rev=895235&r1=895234&r2=895235&view=diff
==============================================================================
--- incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java (original)
+++ incubator/wookie/trunk/src/org/apache/wookie/manifestmodel/impl/WidgetManifestModel.java Sat Jan 2 16:49:27 2010
@@ -104,7 +104,12 @@
for (IIconEntity icon: fIconsList){
if (icon.getSrc().equals(iconpath)) exists = true;
}
- if (!exists) fIconsList.add(new IconEntity(iconpath,null,null));
+ if (!exists){
+ IconEntity i = new IconEntity();
+ i.setLang(WidgetPackageUtils.languageTagForPath(iconpath));
+ i.setSrc(iconpath);
+ fIconsList.add(i);
+ }
}
}
@@ -116,7 +121,12 @@
for (IContentEntity content: fContentList){
if (content.getSrc().equals(startpath)) exists = true;
}
- if (!exists) fContentList.add(new ContentEntity(startpath,null,null));
+ if (!exists){
+ ContentEntity c = new ContentEntity();
+ c.setLang(WidgetPackageUtils.languageTagForPath(startpath));
+ c.setSrc(startpath);
+ fContentList.add(c);
+ }
}
}
//Uncomment this when performing conformance testing