diff options
author | Marc Englund <marc.englund@itmill.com> | 2007-11-30 15:04:09 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2007-11-30 15:04:09 +0000 |
commit | 91d3351929f6c161de9c0c7830d98648309dda64 (patch) | |
tree | c98a3a6e592a463028e0b186dd7593835ef13f38 /src | |
parent | 1683b54ad198f3bd8704c65265f9f506a6840025 (diff) | |
download | vaadin-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-x | src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java | 10 |
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; } |