Reviewers: unnurg,

Description:
Adding an option to change the debug id property and prefix. Some users
prefer to use a random attribute instead of the element ID, or they do
not want the "gwt-debug-" prefix. I added two static methods,
DebugInfo#setDebugIdAttribute() and DebugInfo#setDebugIdPrefix(), to
make it easy to configure these settings.

An alternative approach was to create a new implementation of
DebugIdImplEnabled, which would not use a prefix. The problem is that
switching to that implementation requires the user to add a gwt.xml
rule, and its less flexible because you cannot set an arbitrary prefix.
Users who are comfortable with deferred binding can always override
DebugIdImpl (as many already do) to control how debug IDs are applied.

Issue: 4179


Please review this at http://gwt-code-reviews.appspot.com/1618804/

Affected files:
  M user/src/com/google/gwt/debug/Debug.gwt.xml
  A user/src/com/google/gwt/debug/DebugBase.gwt.xml
  M user/src/com/google/gwt/debug/client/DebugInfo.java
  M user/src/com/google/gwt/user/User.gwt.xml
  M user/src/com/google/gwt/user/client/ui/UIObject.java
  M user/test/com/google/gwt/user/client/ui/UIObjectTest.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to