Application creator now adds a default application style sheet.
Review by:jlabanca(desk check)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2758 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/tools/AppCss.csssrc b/user/src/com/google/gwt/user/tools/AppCss.csssrc
new file mode 100644
index 0000000..84c87d6
--- /dev/null
+++ b/user/src/com/google/gwt/user/tools/AppCss.csssrc
@@ -0,0 +1 @@
+/** Add css rules here for your application. */
diff --git a/user/src/com/google/gwt/user/tools/ApplicationCreator.java b/user/src/com/google/gwt/user/tools/ApplicationCreator.java
index 7efc354..efeaf0a 100644
--- a/user/src/com/google/gwt/user/tools/ApplicationCreator.java
+++ b/user/src/com/google/gwt/user/tools/ApplicationCreator.java
@@ -208,6 +208,17 @@
}
{
+ // Create a skeleton css file
+ File publicCSS = Utility.createNormalFile(publicDir, className + ".css",
+ overwrite, ignore);
+ if (publicCSS != null) {
+ String out = Utility.getFileFromClassPath(PACKAGE_PATH
+ + "AppCss.csssrc");
+ Utility.writeTemplateFile(publicCSS, out, replacements);
+ }
+ }
+
+ {
// Create a skeleton Application class
File javaClass = Utility.createNormalFile(clientDir, className + ".java",
overwrite, ignore);
diff --git a/user/src/com/google/gwt/user/tools/Module.gwt.xmlsrc b/user/src/com/google/gwt/user/tools/Module.gwt.xmlsrc
index e16c430..ff4209d 100644
--- a/user/src/com/google/gwt/user/tools/Module.gwt.xmlsrc
+++ b/user/src/com/google/gwt/user/tools/Module.gwt.xmlsrc
@@ -5,6 +5,8 @@
<!-- Specify the app entry point class. -->
<entry-point class='@clientPackage.@className'/>
+
+ <!-- Style sheet information -->
<!-- Include the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
@@ -12,4 +14,9 @@
<stylesheet src='default/GWT.css'/>
<!-- <stylesheet src='chrome/GWT.css'/> -->
<!-- <stylesheet src='dark/GWT.css'/> -->
+
+
+ <!-- Specify the application specific style sheet. -->
+ <stylesheet src='@className.css' />
+
</module>