summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2007-11-30 15:04:09 +0000
committerMarc Englund <marc.englund@itmill.com>2007-11-30 15:04:09 +0000
commit91d3351929f6c161de9c0c7830d98648309dda64 (patch)
treec98a3a6e592a463028e0b186dd7593835ef13f38 /src
parent1683b54ad198f3bd8704c65265f9f506a6840025 (diff)
downloadvaadin-framework-91d3351929f6c161de9c0c7830d98648309dda64.tar.gz
vaadin-framework-91d3351929f6c161de9c0c7830d98648309dda64.zip
Reports error to console if themeUri==null and ThemeResource used
svn changeset:3086/svn branch:trunk
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
index 9e697a03cb..54f5885b37 100755
--- a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
@@ -570,8 +570,14 @@ public class ApplicationConnection {
* @return translated URI ready for browser
*/
public String translateToolkitUri(String toolkitUri) {
- if (toolkitUri.startsWith("theme")) {
- toolkitUri = getThemeUri() + toolkitUri.substring(7);
+ if (toolkitUri.startsWith("theme://")) {
+ String themeUri = getThemeUri();
+ if (themeUri == null) {
+ console
+ .error("Theme not set: ThemeResource will not be found. ("
+ + toolkitUri + ")");
+ }
+ toolkitUri = themeUri + toolkitUri.substring(7);
}
return toolkitUri;
}