Remove trailing whitespace during save in Eclipse

Change-Id: I65c674ee8e0d8aa44613793d87e76c7ad9e98090
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs
index f37f6f0..6263c74 100644
--- a/.settings/org.eclipse.jdt.ui.prefs
+++ b/.settings/org.eclipse.jdt.ui.prefs
@@ -1,5 +1,6 @@
-#Tue Sep 02 17:00:18 PDT 2008
+#Thu Nov 05 16:18:16 PST 2009
 eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
 formatter_profile=_Google Format
 formatter_settings_version=11
 org.eclipse.jdt.ui.ignorelowercasenames=true
@@ -7,3 +8,54 @@
 org.eclipse.jdt.ui.ondemandthreshold=99
 org.eclipse.jdt.ui.staticondemandthreshold=99
 org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=false
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=false
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=true
+sp_cleanup.make_parameters_final=true
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=false
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=false
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=false
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
index e10f683..f5595c9 100644
--- a/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
+++ b/src/main/java/com/google/gwtexpui/clippy/client/CopyableLabel.java
@@ -75,7 +75,7 @@
 
   /**
    * Create a new label
-   * 
+   *
    * @param str initial content
    */
   public CopyableLabel(final String str) {
@@ -84,7 +84,7 @@
 
   /**
    * Create a new label
-   * 
+   *
    * @param str initial content
    * @param showLabel if true, the content is shown, if false it is hidden from
    *        view and only the copy icon is displayed.
diff --git a/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java b/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java
index d20cda6..e368ab3 100644
--- a/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java
+++ b/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java
@@ -91,7 +91,7 @@
    * Lines that start with whitespace are assumed to be preformatted, and are
    * formatted by the <code>gwtexpui-SafeHtml-WikiPreFormat</code> CSS class. By
    * default this class is:
-   * 
+   *
    * <pre>
    *   white-space: pre;
    *   font-family: monospace;
@@ -179,7 +179,7 @@
    * <b>WARNING:</b> This replacement is being performed against an otherwise
    * safe HTML string. The caller must ensure that the replacement does not
    * introduce cross-site scripting attack entry points.
-   * 
+   *
    * @param regex regular expression pattern to match the substring with.
    * @param repl replacement expression. Capture groups within
    *        <code>regex</code> can be referenced with <code>$<i>n</i></code>.
@@ -195,7 +195,7 @@
    * <b>WARNING:</b> This replacement is being performed against an otherwise
    * safe HTML string. The caller must ensure that the replacement does not
    * introduce cross-site scripting attack entry points.
-   * 
+   *
    * @param regex regular expression pattern to match substrings with.
    * @param repl replacement expression. Capture groups within
    *        <code>regex</code> can be referenced with <code>$<i>n</i></code>.
diff --git a/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java b/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java
index 2afba70..a5d8484 100644
--- a/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java
+++ b/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java
@@ -158,7 +158,7 @@
    * After the element is open the attributes may be manipulated until the next
    * <code>append</code>, <code>openElement</code>, <code>closeSelf</code> or
    * <code>closeElement</code> call.
-   * 
+   *
    * @param tagName name of the HTML element to open.
    */
   public SafeHtmlBuilder openElement(final String tagName) {
@@ -176,7 +176,7 @@
 
   /**
    * Get an attribute of the last opened element.
-   * 
+   *
    * @param name name of the attribute to read.
    * @return the attribute value, as a string. The empty string if the attribute
    *         has not been assigned a value. The returned string is the raw
@@ -190,7 +190,7 @@
 
   /**
    * Set an attribute of the last opened element.
-   * 
+   *
    * @param name name of the attribute to set.
    * @param value value to assign; any existing value is replaced. The value is
    *        escaped (if necessary) during the assignment.
@@ -204,7 +204,7 @@
 
   /**
    * Set an attribute of the last opened element.
-   * 
+   *
    * @param name name of the attribute to set.
    * @param value value to assign, any existing value is replaced.
    */
@@ -218,7 +218,7 @@
    * If the attribute is not yet assigned, this method sets the attribute. If
    * the attribute is already assigned, the new value is appended onto the end,
    * after appending a single space to delimit the values.
-   * 
+   *
    * @param name name of the attribute to append onto.
    * @param value additional value to append.
    */
diff --git a/src/main/java/com/google/gwtexpui/server/CacheControlFilter.java b/src/main/java/com/google/gwtexpui/server/CacheControlFilter.java
index e389d23..32345ac 100644
--- a/src/main/java/com/google/gwtexpui/server/CacheControlFilter.java
+++ b/src/main/java/com/google/gwtexpui/server/CacheControlFilter.java
@@ -35,7 +35,7 @@
  * these resources to have very long expiration times.
  * <p>
  * To use, add the following block to your <code>web.xml</code>:
- * 
+ *
  * <pre>
  * &lt;filter&gt;
  *     &lt;filter-name&gt;CacheControl&lt;/filter-name&gt;
diff --git a/src/main/java/com/google/gwtexpui/user/client/AutoCenterDialogBox.java b/src/main/java/com/google/gwtexpui/user/client/AutoCenterDialogBox.java
index 9c0066f..78ea8d6 100644
--- a/src/main/java/com/google/gwtexpui/user/client/AutoCenterDialogBox.java
+++ b/src/main/java/com/google/gwtexpui/user/client/AutoCenterDialogBox.java
@@ -64,7 +64,7 @@
    * <p>
    * Subclasses may override (but should ensure they still call super.onResize)
    * to implement custom logic when a window resize occurs.
-   * 
+   *
    * @param width new browser window width
    * @param height new browser window height
    */
diff --git a/src/main/java/com/google/gwtexpui/user/client/ViewSite.java b/src/main/java/com/google/gwtexpui/user/client/ViewSite.java
index c80e22f..30b8408 100644
--- a/src/main/java/com/google/gwtexpui/user/client/ViewSite.java
+++ b/src/main/java/com/google/gwtexpui/user/client/ViewSite.java
@@ -50,7 +50,7 @@
    * The view will be attached to the DOM tree within a hidden container,
    * permitting its <code>onLoad()</code> method to execute and update the DOM
    * without the user seeing the result.
-   * 
+   *
    * @param view the next view to display.
    */
   public void setView(final V view) {
@@ -66,7 +66,7 @@
 
   /**
    * Invoked after the view becomes the current view and has been made visible.
-   * 
+   *
    * @param view the view being displayed.
    */
   protected void onShowView(final V view) {